How to Start Advanced Client Inventory in SMS
Published : April 11, 2005
This script starts the SMS Advanced Client hardware inventory process on a computer where the script is run. The script uses the Advanced Client COM Automation Control Panel CPAppletMgr and ClientActions objects to iterate through the collection of available client actions and, once discovered, run the hardware inventory collection action.
For additional information about automating Advanced Client inventory, see the SMS 2003 SDK.
On This Page
Example
Compiling the Code
See Also
Example
sActionName="Hardware Inventory Collection Cycle" 'Change sAction to "Software Inventory Collection Cycle" for software inventory. 'Create a CPAppletMgr instance. Dim oCPAppletMgr Set oCPAppletMgr = CreateObject("CPApplet.CPAppletMgr") 'Get the available ClientActions object. Dim oClientActions Set oClientActions = oCPAppletMgr.GetClientActions() 'Loop through the available client actions. Dim oClientAction For Each oClientAction In oClientActions 'Is this the action we want to start? If oClientAction.Name = sActionName Then 'Start the action. oClientAction.PerformAction End If Next
Compiling the Code
- Requires an SMS 2003 Advanced Client.
See Also
Tasks
How to Resynchronize the SMS Advanced Client
How to Use the SMS Advanced Client COM Automation Objects