The SMS Advanced Client Automation objects are hierarchically arranged according to their function. At the root, there is typically an entry object from which you can connect to other objects. Alternatively, you can call functions or properties directly. The following procedure shows how you navigate from the root object to call methods on other objects.

For more information about using COM Automation objects, see the Microsoft Windows 2000 Scripting Guide.

To use an Advanced Client Automation object

  1. Create an instance of the root Automation object you require. In this case, it’s the Software Distribution UIResourceMgr object.

    set oUIResManager = createobject("UIResource.UIResourceMgr")
  2. Get the object from the resource manager. The following example gets the cache object by calling GetCacheInfo on the resource manager object:

    set oCache=oUIResManager.GetCacheInfo()
  3. The following example uses the returned cache object to display the amount of free space in the cache:

    wscript.echo "Free:	" & FormatNumber(oCache.FreeSize,0) + "MB"

See Also