powershell - Uninstalling Patches from list of Machines -


i trying write script pulls list of machines , uninstalls hotfixes listed below. can't seem find right cmdlet says -hotfixid not cmdlet. can me out this.

$mycomputers = get-content  "c:\mycomputers.txt" foreach ($computer in $mycomputers) { uninstall-hotfix -computername $computer  -hotfixid kb123456 -hotfixid kb925673  } 

you need repeat command each hotfix so:

$mycomputers = get-content "c:\mycomputers.txt"  foreach ($computer in $mycomputers) {   uninstall-hotfix -computername $computer -hotfixid kb123456   uninstall-hotfix -computername $computer -hotfixid kb925673  } 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -