AutomoxAutomox

Windows Update Troubleshooter

jack.smith
September 8, 2021 at 2:46 pm UTC

This will kick off the Windows Update Troubleshooter process and attempt to report back results of the process into the activity log.

Remediation Code

powershell5 lines
$tsp = Get-TroubleshootingPack C:\Windows\diagnostics\system\WindowsUpdate
Invoke-TroubleshootingPack -Pack $tsp -AnswerFile .\WUDAnswers.xml -Unattended -Result $env:HomeDrive\WUDResult

[xml]$xml = Get-Content $env:HomeDrive\WUDResult\ResultReport.xml
$xml.ResultReport.Package.Problem.DetectionInformation.DetailedInformation.Detail.Contents.Objects.Object | % { write-output $_.'#text';write-output ". " }

This discussion is archived and closed to replies. Continue it in the Automox Community Slack.

Discuss on Slack