Less intense resetting of the Windows Update client

  • 26 August 2019
  • 0 replies
  • 55 views

Userlevel 5

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

This topic has been closed for comments