Skip to main content

The Invoke-TroubleshootingPack cmdlet runs a troubleshooting pack in either interactive or unattended mode. A troubleshooting pack determines the root causes of issues, resolves the issues, and verifies that the issues were resolved.



Eval



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

{

Exit 0



}

Else {

Exit 1

}



Remediatrion



#Stripped down very low level reset of windows update components

Get-TroubleshootingPack -Path $env:systemroot\diagnostics\system\WindowsUpdate | Invoke-TroubleshootingPack -Unattended