Windows Update Troubleshooter

  • 8 September 2021
  • 0 replies
  • 204 views

Userlevel 5
Badge +1

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


Remediation Code


$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 ". " }

0 replies

Be the first to reply!

Reply