Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WUSA.EXE as a task to apply updates and reboot

Posted on 2014-03-20
6
Medium Priority
?
909 Views
Last Modified: 2014-03-20
I have Windows 2008 r2 standard servers.  I have a group policy to download and wait on installing windows updates.   I want to schedule a task to apply the downloaded updates.

WUSA.EXE seems to be the ticket, but I was not sure exactly how I would tell it to apply all the windows updates and then reboot.   I need help on the syntax of the command to do this so that the command can be put into a scheduled task.
0
Comment
Question by:HCSHAW
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 13

Expert Comment

by:Santosh Gupta
ID: 39943051
Hi,

I am not sure why you are looking for command line. you can use local group policy to achieve this task with advance options.

Go to Run and type GPEDIT.MSC and explore --> Computer Configuration | Policies | Administrative Templates | Windows Components | Windows Update section.

See the attached Image

here you can configure Group Policy as you want.

After configuration,  close that console and run the "gpupdate /force" command in cmd

and you are good to go.
update
0
 

Author Comment

by:HCSHAW
ID: 39943326
Santosh, Thank you for your response. I am familiar with the group policy settings for windows update.  The issue is that I cannot have the server automatically reboot when updates have been downloaded.   There are other applications that are dependent on the server and get screwed up when the server decides to reboot on its own.  I want to control when the updates are applied.  To build a script to monitor and restart everything would be very tedious.  

I already have the windows update group policy set to download and wait.     I have been doing the applies as a manual process.  Generally once a month I run the updates and reboot, followed by reset/restarting the dependent applications.   If I know that I have a schedule apply/reboot tomorrow at 3, then at 6 I can logon and reset/restart the other applications.  The way I am doing it now, I have to apply and wait for the updates to complete.  Sometimes that can be a lengthy process.    Having the apply updates completed would save time.  That is why I am pursuing this solution of running it from the task scheduler.  However to do it, I need the  exact syntax for the command to apply all windows updates and reboot.  From what I see of the command, it appears I have to specify what updates to apply.   I really just want it to run all of them.  Do you have any ideas on the syntax to run all?
0
 

Author Comment

by:HCSHAW
ID: 39943377
Another consideration.   I can't really schedule it to happen at a certain time.  I need the reboot to work around my schedule so that I can be available for the reboot reset/restart other applications process.    

Concerning the file location, Im sure I can find where the update files are stored, but I havn't seen a way to say process all of them.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 56

Expert Comment

by:McKnife
ID: 39943671
There is help: http://www.wuinstall.com/
Used to be freeware, if you like it (there is a trial of the professional version which you can download), I can upload the free version here, I still have it. Or you buy the pro.
0
 
LVL 56

Accepted Solution

by:
McKnife earned 2000 total points
ID: 39943682
0
 

Author Closing Comment

by:HCSHAW
ID: 39943737
WUAUCLT looks like the tool I am looking for.  Thanks for the links and discussion.   I confirmed it is in W2008 Server R2.  I have not confirmed the options still exist but I am pretty sure they would not have dropped them.   As for using WSUS, I did for years, but it was a bear!.   I have decided to take my chances with the updates, and let every machine find its on updates.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

721 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