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.


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.
	End If

Compiling the Code

  • Requires an SMS 2003 Advanced Client.

See Also