Public
Authored by Ramou

Check-KB-Wannacry.ps1

Edited
Check-KB-Wannacry.ps1 638 Bytes
  • Ma version pour le boulot (ajout de pause en fin de script pour eviter d'exit et d'avoir a passer par une cmd)

    
    $hotfixes = "KB4012212", "KB4012217", "KB4015551", "KB4019216", "KB4012216", "KB4015550", "KB4019215", "KB4013429", "KB4019472", "KB4015217", "KB4015438", "KB4016635", "KB4012213", "KB4012216", "KB4012214", "KB4012215", "KB4012212", "KB4013429", "KB4012606", "KB4013198", "KB4016871"
    # Search for the HotFixes
    $hotfix = Get-HotFix | Where-Object {$hotfixes -contains $_.HotfixID} | Select-Object -property "HotFixID"
    if (Get-HotFix | Where-Object {$hotfixes -contains $_.HotfixID}) {
        "HotFix trouvé: " + $hotfix.HotFixID
    } else {
        "Pas de hotfix trouvé, mets à jour!"
    }
    pause
    Edited by Jaerdoster
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment