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?
Import-Module -Name TroubleShootingPack
Get-TroubleshootingPack C:\Windows\diagnostics\system\Audio | Invoke-TroubleshootingPack
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