How to Use the SMS Advanced Client COM Automation Objects
Published : April 11, 2005
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.
On This Page
To use an Advanced Client Automation object
See Also
To use an Advanced Client Automation object
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")
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()
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
Tasks
How to Get or Set the Current SMS Advanced Client Site