Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wusa c:temphotfixname.msu /quiet /norestart
- import-module ActiveDirectory
- $AllPCs = Get-ADComputer -SearchBase "Appropriate OU Here" -filter *
- $AllPCs | Foreach {
- Invoke-Command -ComputerName "$($_.name)" -AsJob -ScriptBlock {
- if (!(Get-HotFix -id hotfixkb)) { CMD /C "wusa.exe c:temphotfixname.msu /quiet /norestart" }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement