Solved

windows update and remote desktop

Posted on 2013-06-29
10
284 Views
Last Modified: 2013-09-06
I use remote desktop connection manager to login to multiple servers.

I then run windows update, custom scan to see what updates are available to install.

Is there a way I can push a script from RDP to run on the remote server to do all the clicking and run the windows update scanning process, so basiicaly when I logon onto all the servers it just shows me what windows updates are availble for installation?
0
Comment
Question by:Ikky786
10 Comments
 

Author Comment

by:Ikky786
ID: 39287157
basically as soon I login to the servers with remote desktop connection I want
a small window to be displayed which shows me straight away what updates are availble to be installed. may be in a small command prompt
0
 
LVL 70

Expert Comment

by:KCTS
ID: 39287245
Why don't you just use WSUS ?
0
 

Author Comment

by:Ikky786
ID: 39287352
no wsus I'm afraid
0
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 11

Expert Comment

by:Manjunath Sullad
ID: 39287708
Hi,

Try this -

psexec \\server -c -s -u domain\administrator -p password \\share\path_to_wuinstall\WUInstall.exe /install


Please refer :

http://smtpport25.wordpress.com/2010/08/06/installing-patchesapplication-remotely-on-windows-machine-using-psexec/ 

Regards,
~ Manju
0
 

Author Comment

by:Ikky786
ID: 39287985
Thanks for this, it's a very good script but it's not what I require. I require the following :

"Upon logging onto server I want the server to display to me what updates are available to install after it has done a scan"

And that's all I require. Even if there is a script which I can execute remotely from my laptop to all the servers - which then reports back to me what updates are available to install. That's all I need.
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 39288820
Again, why are you not using WSUS ???????

You can then use option 3 in windows update---which is to "Download and Notify for install"

Managing the WSUS Automatic Updates Client Download, Install, and Reboot Behavior with Group Policy

http://technet.microsoft.com/en-us/library/cc512630.aspx

Best Practices with Windows Server Update Services 3.0

http://technet.microsoft.com/en-us/library/cc720525%28v=ws.10%29.aspx
0
 

Author Comment

by:Ikky786
ID: 39289604
Ok some new news.my company using wsus and sccm.

Sometime sccm works well and updates the machines and reboots them.

Sometime sccm fails so we have to login to the servers with rdp and then run a manual scan from windows updates (which I'm sure picks the available updates from the wsus server)

My question is what command can I run from powershell (from my laptop) to remotely perform a windows update scan on a single server to list which updates are available to download. all I want is a list if updates which are available for download. Is there a WMI class I can use which does this in powershell ? I don't want to use scripts from the Internet. I'm sure it's a one line something like get-wmiobject -class ?classname? . Invokemethod -computer name etc etc
0
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 500 total points
ID: 39290012
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 39290030
0
 

Author Comment

by:Ikky786
ID: 39292374
I think this is what I'm looking for:

http://gallery.technet.microsoft.com/scriptcenter/0dbfc125-b855-4058-87ec-930268f03285

You give it a computer name and it throws back a list I updates which are pending I.e available for download. So basically this is like logging into the computer and running windows update through the browser which then lists updates which are ready to be download and installed.  Have I got this right ? Can I use JUST this script or is there something else I have I use with it ? and how do I specify login credentials to the command line ?

And any ideas on how I can actually install the updates once I have selected them through powershell ?
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

809 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