Link to home
Start Free TrialLog in
Avatar of Ikky786
Ikky786

asked on

windows update and remote desktop

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?
Avatar of Ikky786
Ikky786

ASKER

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
Avatar of Brian Pierce
Why don't you just use WSUS ?
Avatar of Ikky786

ASKER

no wsus I'm afraid
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
Avatar of Ikky786

ASKER

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.
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
Avatar of Ikky786

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Don
Don
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ikky786

ASKER

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 ?