Windows – Play a WAV file with PowerShell and the .NET SoundPlayer Class

At work, they wanted to ability to play a soundbyte on a schedule as a reminder to our sales employees. I think I may have found this on stackexchange but I can’t quite remember at this point to give the full creds. A lot of the solutions I found tried to use Windows Media Player to play sound files or MP3’s, but unfortunately, there was no way to close the program after the file had played. This way uses Windows PowerShell and the .NET SoundPlayer Class to play the file. Continue reading “Windows – Play a WAV file with PowerShell and the .NET SoundPlayer Class”