Worklet: Invoke Troubleshootingpack Networking
JasonG-Automox
October 11, 2019 at 3:41 pm UTC
Invokes Microsoft’s builtin network repairs. Edit the variable $logfile to set a custom log file locatiom. Only run manually and test thoroughly beforehand.
• Under Evaluation Code:
powershell8 lines
If (Test-Path "$env:allusersprofile\SoftwareDistribution")
{
Exit 0
}
Else {
Exit 1
}• Under Remediation Code:
powershell3 lines
$logfile = "C:\Temp\"
Get-TroubleshootingPack -path "C:\Windows\Diagnostics\System\networking" | Invoke-TroubleshootingPack -Unattended -Result "$logfile"This discussion is archived and closed to replies. Continue it in the Automox Community Slack.
Discuss on Slack