Solved

windows update and remote desktop

Posted on 2013-06-29
10
281 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
 
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
Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

 
LVL 47

Expert Comment

by:dstewartjr
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:
dstewartjr earned 500 total points
ID: 39290012
0
 
LVL 47

Expert Comment

by:dstewartjr
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
At the beginning of the year, the IT world was taken hostage by the shareholders of LogMeIn. Their free product, which had been free for ten years, all of the sudden became a "pay" product. Now, I am the first person who will say that software maker…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

758 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

21 Experts available now in Live!

Get 1:1 Help Now