Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Load required assemblies
- [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Speech")
- # Set Volume
- Function Set-Speaker($Volume){$wshShell = new-object -com wscript.shell;1..50 | % {$wshShell.SendKeys([char]174)};1..$Volume | % {$wshShell.SendKeys([char]175)}}
- Set-Speaker -Volume 50
- [audio]::Mute = $false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement