Author Posts

July 21, 2014 at 3:31 am

friends,
how do I control the audio volume (the overall volume and Media Player)?

July 21, 2014 at 3:45 am

With PowerShell? I don't think there's any support for that built-in, but since you can access the entire COM and Win32 API ecosystem, I'm sure there's a way to make it work. A quick web search turned up this module my Chris Hunt: https://github.com/cdhunt/WindowsAudioDevice-Powershell-Cmdlet

July 23, 2014 at 1:06 am

In case any one else is looking for more information about this in the future, here are some other alternative to controlling audio from PowerShell:
PowerShell Set PC Volume Control: http://gallery.technet.microsoft.com/scriptcenter/PowerShell-Set-PC-Volume-1737b160
Scripting Guy Weekend Scripter: Cheesy Script to Set Speaker Volume: http://blogs.technet.com/b/heyscriptingguy/archive/2013/07/28/weekend-scripter-cheesy-script-to-set-speaker-volume.aspx

There's also a thread on this on the powershell.com forums that contains this information and more:
http://powershell.com/cs/forums/t/18029.aspx

July 23, 2014 at 5:39 am

Boe Prox did one but it basically sent some secret keystrokes to the OS main thing is that it works.

having trouble finding the link though to be continued.

July 23, 2014 at 5:41 am

[url]http://social.technet.microsoft.com/Forums/windowsserver/en-US/ba8939f1-de55-40d0-a687-08a57414a8d5/powershell-commandsscript-to-control-to-control-default-sound-device?forum=winserverpowershell[/url]

See if that URL works!

-VERN

EDIT: I see now your link had an extra slash ol on it

[url]http://blogs.technet.com/b/heyscriptingguy/archive/2013/07/28/weekend-scripter-cheesy-script-to-set-speaker-volume.aspx[/url]

July 23, 2014 at 11:05 am

Indeed, thanks for letting me know I just corrected the links in my post.