Is there a way to detect sound via PowerShell?

Question:

I want to detect if PC is playing any kind of sound.

if it isn’t playing any kind of sound I can use else condition in Powershell and do whatever I need to do next.

So is there anyway to detect sound via PowerShell?

Thanks

Answer:

method 1…

method 2…
start to reverse engineer the scripts in C:\Windows\diagnostics\system\Audio 🙂

P.S: You can also read in shay’s blog about how to do your specific task
http://scriptolog.blogspot.co.il/2007/09/playing-sounds-in-powershell.html

Source:

Is there a way to detect sound via PowerShell? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply