xenolightning / AudioSwitcher

.NET Library which facilitates interacting with Audio Devices on Windows
Microsoft Public License
248 stars 53 forks source link

Powershell Module? #36

Closed mg07647 closed 7 years ago

mg07647 commented 7 years ago

Controlling desktop audio devices via Powershell is exactly what I'm looking for, but the links to the documentation seem to be broken. Also it would be helpful if there was a pre-compiled DLL and a sample script. Sorry if I just missed any of the above.

xenolightning commented 7 years ago

Nope, you didn't miss anything.

I hadn't updated the docs since I moved it into a separate repository.

Check out: https://github.com/xenolightning/AudioSwitcher.PowerShell

It has all the info in it.

xenolightning commented 7 years ago

There aren't any docs on how to use it, but feel free to ask any questions.

qwelias commented 5 years ago

Hi @xenolightning,

I'm interested in toggling device state (enabled/disabled), is it possible to do with Get-AudioController?

xenolightning commented 5 years ago

@qwelias Enabling/Disabling devices is outside the scope of the audioswitcher library I'm afraid.

It requires admin access, and to interact with device management.

You might be able to manage device state via powershell, check the following page: https://blogs.technet.microsoft.com/wincat/2012/09/06/device-management-powershell-cmdlets-sample-an-introduction/