Created
July 26, 2016 05:58
-
-
Save murven/f99e35013c730c95b557e5513929e5e9 to your computer and use it in GitHub Desktop.
Play sound in PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$player = New-Object System.Media.SoundPlayer "$env:windir\Media\notify.wav" | |
$player.Play() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this, might I propose an addition?
https://gist.github.com/asheroto/63e56848eae5af3b7d670a9a7014eee7