[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 792
  • Last Modified:

Using powershell to run windows updates

First:

I can not use WSUS, nor any other mechnisim.  I have no access to Group Policy, and that can not be changed.

I am looking for a powershell script that will allow me to run windows updates (to Microsofts Servers) download and install all current patches.

Idealy I could run the file from my computer and it would go out to all the servers in my list and kick off Windows update.  

All server builds are done a special network.  I can not deploy WSUS or any other tool on this network so please DO NOT SUGGEST IT.   To move it off this network I need to have them fully patched first.  MY only option is Powershell.  

If I can't figure out a way to do this with powershell I will have to continue to do it manually..
0
brittonv
Asked:
brittonv
1 Solution
 
jessc7Commented:
Check out this post:

Manage Windows Update installations using Windows PowerShell
http://blog.powershell.no/2010/06/25/manage-windows-update-installations-using-windows-powershell/

The script he wrote and references is located here:

Invoke-WindowsUpdate
http://poshcode.org/1932


Here is another example on a TechNet blog:

Managing Windows Update with PowerShell
http://blogs.technet.com/b/jamesone/archive/2009/01/27/managing-windows-update-with-powershell.aspx
0
 
brittonvAuthor Commented:
Thanks I had seen these but I didn't see where I could run them from a single console.  What I am tryint to avoid is having to log on to ever computer.  

I want to execute this remotely
0
 
Adam BrownSr Solutions ArchitectCommented:
You would need to have powershell 2.0 installed and configured for remote management on all the computers you want to use. http://technet.microsoft.com/en-us/magazine/ff700227.aspx has information on setting that up. It's possible to push out GPOs that do the configuration for you. From there you would use the invoke-command cmdlet (http://technet.microsoft.com/en-us/library/dd347578.aspx ) to run the necessary commands on each computer remotely.
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now