To intiate Discovery Data Cycle run this Script:---
==================================================================================================================================================================
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
================================================================================================================================================
The above script will run on only local system. Ofcourse every one wants to run this in remote systems so i created a batch file to run on targeted list of systems ... Here is the Batch file....
===========================================================================
ECHO *********** %1 copy
===========================================================================
and the synatx to call the batch file is ""For /F %a in (list.txt) do one.bat %a"""" Include systems name in list.txt file
==========================================================================
0 comments:
Post a Comment