11 August 2005

Force Policy Update script for usage with DS

The following VB Script can be used with an existing AClient to force the Altiris NS Agent to wake up and check for any new configuration / policy updates. This is not an issue with NS 6 since it can now do that, but for everyone with 5.5, this is still valuable.
 
 'vbscript
Option Explicit
 
' Declare variables
Dim Client
 
' Create the NS Client object
Set Client = CreateObject("Altiris.AeXNSClient")
 
' Ask the client's policy manager to refresh the configuration
Client.ClientPolicyMgr.Refresh
 
' Clean up
Set Client = Nothing

No comments: