SMS 2003 SMS 2003 Client Retrieve Updated Machine Policy
' Retrieve Updated Machine Policy
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
|
VbsEdit includes all these samples!
Download Now!
Version 5.4.1 - This package includes VbsEdit 32-bit, VbsEdit 64-bit, HtaEdit 32-bit and HtaEdit 64-bit. The evaluation version never expires.
Home
|