Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $PATH = "S:UserPersonUPDATESUpdate for Windows 7 for x64-based Systems (KB3134760)AMD64-all-windows6.1-kb3134760-x64_d720851ef4b5a37c1c8bdd2e5bf4c77dcc625e8c.msu"
- $SB = {Start-Process -FilePath 'c:windowssystem32wusa.exe' -ArgumentList ('S:UserVossUPDATESUpdate for Windows 7 for x64-based Systems (KB3134760)AMD64-all-windows6.1-kb3134760-x64_d720851ef4b5a37c1c8bdd2e5bf4c77dcc625e8c.msu','/quiet', '/promtrestart', "/log:S:UserVossUPDATESUpdate for Windows 7 for x64-based Systems (KB3134760)Update.log") -Wait}
- $computer = echo (Get-WmiObject -Class Win32_ComputerSystem -Property Name).Name
- Invoke-Command -ScriptBlock $SB
Add Comment
Please, Sign In to add comment