Solved

windows update and remote desktop

Posted on 2013-06-29
10
282 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to learn promise API 2 43
React or Angular? 6 53
Remote Desktop GATEWAY server 2008 to 2012 cutover 5 48
How can I save all open docs into a given folder 12 87
Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
Local Printing Using Remote Desktop Windows 7 sometimes has issues with printing to a local printer using a Remote Desktop Connection (RDC). The 1st step is to verify that printers are checked on the Local Resources tab of the Remote Desktop C…
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

15 Experts available now in Live!

Get 1:1 Help Now