locked
PS Get-hotfix RRS feed

  • Question

  • Need a script that shows does specified hotfix  don't installed on win 2k8r2 servers, and then import lists of Win2k8r2 server which have no this hotfix (for example kb2xxxx)  into CSV
    Tuesday, May 22, 2012 8:53 AM

Answers

  • Need a script that shows does specified hotfix  don't installed on win 2k8r2 servers, and then import lists of Win2k8r2 server which have no this hotfix (for example kb2xxxx)  into CSV

    I dont know if thats possible but what do you think about an approach of quering a list of hotfixes? You could import those Hotfixes via a textfile and save the result in the computer variable.

    Something like this:

    C:\PS>$a = get-content servers.txt
    
    C:\PS> $a | foreach { if (!(get-hotfix -id KB957095 -computername $_)) { add-content $_ -path Missing-kb953631.txt }}

    Regards

    Power Junior





    • Edited by King Julien Tuesday, May 22, 2012 9:36 AM
    • Marked as answer by PEETRS Tuesday, May 22, 2012 11:45 AM
    Tuesday, May 22, 2012 9:32 AM