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
Post a Comment