Worklet: Invoke search repair troubleshooting pack

  • 11 October 2019
  • 0 replies
  • 39 views

Userlevel 5

Invokes Microsoft’s builting search repairs


• Under Evaluation Code:


If (Test-Path "$env:systemroot\SoftwareDistribution")
{
Exit 0
}
Else {
Exit 1
}

• Under Remediation Code:


$logfile = "C:\Temp\"

Get-TroubleshootingPack -path "C:\Windows\Diagnostics\System\Search" | Invoke-TroubleshootingPack -Unattended -Result "$logfile"

0 replies

Be the first to reply!

Reply