Using powershell to run windows updates

Posted on 2011-04-29
Last Modified: 2012-06-27

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..
Question by:brittonv
    LVL 16

    Expert Comment

    Check out this post:

    Manage Windows Update installations using Windows PowerShell

    The script he wrote and references is located here:


    Here is another example on a TechNet blog:

    Managing Windows Update with PowerShell
    LVL 8

    Author Comment

    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
    LVL 37

    Accepted Solution

    You would need to have powershell 2.0 installed and configured for remote management on all the computers you want to use. 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 ( ) to run the necessary commands on each computer remotely.

    Featured Post

    Free book by J.Peter Bruzzese, Microsoft MVP

    Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

    Join & Write a Comment

    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    "Migrate" an SMTP relay receive connector to a new server using info from an old server.
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now