Created
January 15, 2023 15:23
-
-
Save cicorias/50cd37327477cbdfc239921113fa3510 to your computer and use it in GitHub Desktop.
fix the ms defender cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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