Advertisement Tools - Client Actions
Main Menu
>
Tools
>
Advertisement Tools
Client Actions
Use this vbscript to launch a client action (Inventory/policy/patch cycle) on the machine
Download
Code
Software / Hardware Inventory ----------------------SW-HW.vbs--------------- On Error Resume Next Dim oCPAppletMgr Set oCPAppletMgr = CreateObject("CPApplet.CPAppletMgr") Dim oClientActions Set oClientActions = oCPAppletMgr.GetClientActions() Dim oClientAction For Each oClientAction In oClientActions If oClientAction.Name = "Software Inventory Collection Cycle" Then oClientAction.PerformAction End If If oClientAction.Name = "Hardware Inventory Collection Cycle" Then oClientAction.PerformAction End If Next ----------------------------------- Policy Refresh ---- On Error Resume Next Dim oCPAppletMgr Set oCPAppletMgr = CreateObject("CPApplet.CPAppletMgr") Dim oClientActions Set oClientActions = oCPAppletMgr.GetClientActions() Dim oClientAction For Each oClientAction In oClientActions If oClientAction.Name = "Discovery Data Collection Cycle" Then oClientAction.PerformAction End If If oClientAction.Name = "Request & Evaluate Machine Policy" Then oClientAction.PerformAction End If Next
Documentation
If you want to run one of the client actions you simply need to put one of these in as the client action: Software Inventory Collection Cycle MSI Product Source Update Cycle Hardware Inventory Collection Cycle Software Updates Assignments Evaluation Cycle Standard File Collection Cycle Updates Source Scan Cycle Discovery Data Collection Cycle Request & Evaluate User Policy Peer DP Maintenance Task Request & Evaluate Machine Policy Software Metering Usage Report Cycle