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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -