[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Run VBScript remotely to view if there are any WSUS pending updates

Asked by JesseWH in VB Script, Windows 2003 Server

Tags: VBScript WSUS

Hello,
Below is what I have it runs and does exactly what I want it to do localy.  I'm trying to make a script that I can use to conect to a remote server/computer and see if there are any pending updates.  For the life of me I cant find a way to do that through a WMI class.  I'm sure it is someting simple that I am missing.

Thanks in advance for you help.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
On Error Resume Next    
Dim objSearcher, objSearchResult, I, objUpdate  
Set objSearcher = CreateObject("Microsoft.Update.Searcher")  
objSearcher.Online = True   
objSearcher.ServerSelection = 1  
  
Set objSearchResult = objSearcher.Search("DeploymentAction='Installation'" & " and IsAssigned=1 and IsInstalled=0 or DeploymentAction=" & "'Uninstallation' and IsAssigned=1 and IsPresent=1 or" _  
& " DeploymentAction='Installation' and IsAssigned=1 and" & " RebootRequired=1 or DeploymentAction='Uninstallation' and" & " IsAssigned=1 and RebootRequired=1")  
  
If Err.Number <> 0 Then    
	WScript.echo "Detection failed"  
	WScript.quit  
End If  
  
If objSearchResult.Updates.Count = 0 Then  
	WScript.echo "Your computer is up-to-date with the WSUS server"  
	WScript.quit  
End If  
  
For i = 1 to objSearchResult.Updates.Count - 1  
	Set objUpdate = objSearchResult.Updates(i)  
	If ((objUpdate.DeploymentAction = 1 And Not objUpdate.IsInstalled) Or (objUpdate.DeploymentAction = 2 And objUpdate.IsPresent)) Then  
		WScript.echo "Some updates are still available to your computer."  
  	WScript.quit  
	End If  
Next  
For i = 1 to objSearchResult.Updates.Count - 1  
	Set objUpdate = objSearchResult.Updates(i)  
	If objUpdate.RebootRequired Then  
	WScript.echo "Some updates have been (un)installed on your" & " computer. Your computer needs to be restarted to computer" & " their (un)installation."  
	WScript.quit  
	End If  
Next
[+][-]02/23/09 08:14 AM, ID: 23712710Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/23/09 08:45 AM, ID: 23713070Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/23/09 08:58 AM, ID: 23713211Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/23/09 09:00 AM, ID: 23713242Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/23/09 10:33 PM, ID: 23718797Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/09 08:52 AM, ID: 23735683Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/09 11:35 AM, ID: 23737463Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02/25/09 03:39 PM, ID: 23739925Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/09 11:08 PM, ID: 23742216Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/09 11:20 PM, ID: 23742269Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/03/09 07:35 AM, ID: 23784738Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: VB Script, Windows 2003 Server
Tags: VBScript WSUS
Sign Up Now!
Solution Provided By: dstewartjr
Participating Experts: 3
Solution Grade: A
 
[+][-]03/05/09 12:13 PM, ID: 23809993Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/05/09 03:35 PM, ID: 23812392Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/09/09 09:44 AM, ID: 23837706Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625