Is there a way to detect sound via PowerShell?

powershell

Solution

method 1...

Import-Module -Name TroubleShootingPack
Get-TroubleshootingPack C:\Windows\diagnostics\system\Audio | Invoke-TroubleshootingPack

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

Problem

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

Original source

Related problems