Skip to content

Instantly share code, notes, and snippets.

@cicorias
Created January 15, 2023 15:23
Show Gist options
  • Save cicorias/50cd37327477cbdfc239921113fa3510 to your computer and use it in GitHub Desktop.
Save cicorias/50cd37327477cbdfc239921113fa3510 to your computer and use it in GitHub Desktop.
fix the ms defender cluster
$list = get-wmiobject win32_product | select identifyingnumber
foreach ($obj in $list) {
Write-Host ($obj | Format-List | Out-String)
msiexec /fs $obj.identifyingnumber /q
Start-Sleep 10
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment