Skip to main content

Worklets: Invoke Troubleshootingpack Audio


JasonG-Automox

• Under Evaluation Code:


If (Test-Path "$env:allusersprofile\SoftwareDistribution")

{

Exit 0



}

Else {

Exit 1

}


• Under Remediation Code:


#Edit this logfile variable if you want the log files written to another location

$logfile = "C:\Temp\"



#Invokes Microsoft's builtin troubleshooting pack to run through some automated repairs

Get-TroubleshootingPack -path "C:\Windows\Diagnostics\System\audio" | Invoke-TroubleshootingPack -Unattended -Result "$logfile"

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings