Hi
I try to control my speaker volume with powershell. I found this script:
Function Set-Speaker($Volume){$wshShell = new-object -com wscript.shell;1..50 | % {$wshShell.SendKeys([char]174)};1..$Volume | % {$wshShell.SendKeys([char]175)}}
after
Set-Speaker -Volume 50
my speaker mutes. All -Volume values (10,20,30,40,50) doing the same only mutes my speaker.
Windows 10 Home latest. Any ideas how to make it works? How to change volume level?
THX
I try to control my speaker volume with powershell. I found this script:
Function Set-Speaker($Volume){$wshShell = new-object -com wscript.shell;1..50 | % {$wshShell.SendKeys([char]174)};1..$Volume | % {$wshShell.SendKeys([char]175)}}
after
Set-Speaker -Volume 50
my speaker mutes. All -Volume values (10,20,30,40,50) doing the same only mutes my speaker.
Windows 10 Home latest. Any ideas how to make it works? How to change volume level?
THX