Worklets: Invoke Troubleshootingpack Audio
JasonG-Automox
October 11, 2019 at 3:32 pm UTC
• Under Evaluation Code:
powershell8 lines
If (Test-Path "$env:allusersprofile\SoftwareDistribution")
{
Exit 0
}
Else {
Exit 1
}• Under Remediation Code:
powershell5 lines
#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"This discussion is archived and closed to replies. Continue it in the Automox Community Slack.
Discuss on Slack