Guest User

Untitled

a guest
Apr 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. $PATH = "S:UserPersonUPDATESUpdate for Windows 7 for x64-based Systems (KB3134760)AMD64-all-windows6.1-kb3134760-x64_d720851ef4b5a37c1c8bdd2e5bf4c77dcc625e8c.msu"
  2.  
  3. $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}
  4.  
  5. $computer = echo (Get-WmiObject -Class Win32_ComputerSystem -Property Name).Name
  6.  
  7. Invoke-Command -ScriptBlock $SB
Add Comment
Please, Sign In to add comment