How to Resynchronize the SMS Advanced Client

Published : April 11, 2005

This script starts hardware inventory resynchronization on an SMS Advanced Client by deleting the hardware inventory action. The hardware inventory action is identified by the InventoryActionStatus .InventoryActionID property in the Advanced Client WMI namespace.

On This Page

Example
Compiling the Code
See Also

Example

Dim sInventoryActionID
 
sInventoryActionID="{00000000-0000-0000-0000-000000000001}"
'Change sInventoryActionID to {00000000-0000-0000-0000-000000000002} 
'for software inventory.
'Get a connection to the "root\ccm\invagt" namespace (where 
'the Inventory agent exists).
Dim oLocator
Set oLocator = CreateObject("WbemScripting.SWbemLocator")
Dim oServices
Set oServices = oLocator.ConnectServer( , "root\ccm\invagt")
'Delete the specified InventoryActionStatus instance. 
oServices.Delete "InventoryActionStatus.InventoryActionID=""" & sInventoryActionID & """"

Compiling the Code

  • Requires an SMS 2003 Advanced Client.

See Also

Tasks

How to Start Advanced Client Inventory in SMS

How to Use the SMS Advanced Client COM Automation Objects

Concepts

The SMS Advanced Client Automation Objects