Solved

WUSA.EXE as a task to apply updates and reboot

Posted on 2014-03-20
6
761 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
  • 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 53

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 53

Accepted Solution

by:
McKnife earned 500 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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

746 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

12 Experts available now in Live!

Get 1:1 Help Now