Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Deployment > Microsoft SMS 2003

Reply
 
LinkBack Thread Tools Display Modes
Old 03-15-2010, 06:55 PM   #1 (permalink)
Rodney
Guest
 
Posts: n/a
Default How to monitor a SMS Machine Policy Retrieval & Evaluation Cycle

Hi, i am after a vbscript method to monitor when a Machine Policy Retrieval &
Evaluation Cycle is in progress, because it can take several minitues to
complete I would like my script to wait until the process has completed
before continuing.

This is the code used to start the process:

On Error Resume Next

Dim oCPAppletMgr 'Control Applet manager object.
Dim oClientAction 'Individual client action.
Dim oClientActions 'A collection of client actions.

'Get the Control Panel manager object.
Set oCPAppletMgr = CreateObject("CPApplet.CPAppletMgr")
If Err.Number <> 0 Then
Wscript.Echo "Couldn’t create control panel application manager"
WScript.Quit
End If

'Get a collection of actions.
Set oClientActions = oCPAppletMgr.GetClientActions
If Err.Number <> 0 Then
WScript.Echo "Couldn’t get the client actions"
Set oCPAppletMgr = Nothing
WScript.Quit
End If

'Display each client action name and perform it.
For Each oClientAction In oClientActions

If oClientAction.Name = "Request & Evaluate Machine Policy" Then
WScript.Echo "Performing action " + oClientAction.Name
oClientAction.PerformAction
End If
Next


Set oClientActions = Nothing
Set oCPAppletMgr = Nothing

any help would be great.

Regards
Rodney
  Reply With Quote
Old 03-15-2010, 06:55 PM   #2 (permalink)
Rodney
Guest
 
Posts: n/a
Default RE: How to monitor a SMS Machine Policy Retrieval & Evaluation Cycle

has no one have an answer to this problem, it can be Visual Basic code or
VBScript but I need a way to tell when the Machine Policy Retrieval &
Evaluation Cycle starts, stops or is running.

Any help please...

Regards
Rodney
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:36 PM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com