SCRIPT: Remotely install Windows Updates

SCRIPT: Remotely install Windows Updates

[source]

net use \\%computer%\admin$

xcopy wua.vbs \\%computer%\admin$

<span style="font-family: Calibri; font-size: 11pt;">psexec.exe @.txt -s " C:\Windows\System32\cscript.exe" "</span><span style="font-family: Calibri; font-size: 11pt;">c:\Windows\wua.vbs</span><span style="font-family: Calibri; font-size: 11pt;">" /Nologo</span>

wmic /node%computer% qfe list full /format:htable > %computer%_hotfixes.htm

[/source]

Operation Procedure

  1. Preparation Reboot
  2. Services Check
  3. Updates
  4. Services Check
  5. Services Compare
  6. MBSA report

Config Manager Software Center

wmic /node:localhost ComputerSystem get PCSystemType

wmic /node:localhost qfe list full

Systeminfo

MBSA Scan

http://msdn.microsoft.com/en-us/library/windows/desktop/aa387102(v=vs.85).aspx

Leave a comment