SCRIPT: Remotely install Windows Updates

SCRIPT: Remotely install Windows Updates


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

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s