Security & Management

Schedule the Refresh for SMS Client's Machine Policy

In some cases, You may want to change the Machine Policy Refresh Cycle on the SMS Client. And you may want the SMS Clients to get the Updated Policy/Instruction from SMS ASAP.

To do this automatically, You should schedule the Script to run on the SMS Clients.  

===========================================

On Error Resume Next

Dim objCPAppletMgr
Dim objClientActions
Dim objClientAction
Dim strActionName

strActionName="Request & Evaluate Machine Policy"

'Get the Control Panel applet manager object
set  objCPAppletMgr = CreateObject("CPApplet.CPAppletMgr")

'Get a collection of client actions

set objClientActions=objCPAppletMgr.GetClientActions

'Loop through the available client actions

For Each objClientAction In objClientActions
  
  If objClientAction.Name = strActionName Then
    objClientAction.PerformAction 
     WScript.Echo "Action " + objClientAction.Name + " initiated"
  End If
Next

===========================================

 

You can get more SMS scripts on the Microsoft Script Center!

 

Posted: Sun, Mar 26 2006 4:49 by daniel | with no comments
Filed under:
Leave a Comment

(required) 

(required) 

(optional)

(required)