I am trying to find out how to trigger an immediate check for Software Updates post imaging a computer. In my Environment, this check is performed once per day, and I want to expidite it. (See the "Software Updates" tab in the Altiris Agent client). This way I can get Windows Updates immediately via Altiris as soon as the agent is installed. Below is the powershell script I have so far that I am planning to trigger post installation of the Altiris Agent.
Any idea's how I can trigger an immediate check ?
try{
Clear-Host
$AltirisClient = New-Object -ComObject Altiris.AeXNSClient
$AltirisSWD = New-Object -ComObject Altiris.SWD
# disable bandwith throttling
Set-ItemProperty -Path "HKLM:\SOFTWARE\Altiris\Communications" -Name "Enable Bandwidth Control" -Type DWord -value 0
# Send basic inventory
$SendBasicInventory_OverrideUnchanged = 1 # Sends the basic inventory even If it has not changed since the last transmission
$SendBasicInventory_OverrideBlocked = 1 # Sends the basic inventory even if the network connection has been blocked
$AltirisClient.SendBasicInventory($SendBasicInventory_OverrideUnchanged,$SendBasicInventory_OverrideBlocked)
# Refresh client policies
$AltirisClient.ClientPolicyMgr.Refresh()
# Update policies
$UpdatePolicies_OverrideBlocked = 1
$AltirisClient.UpdatePolicies($UpdatePolicies_OverrideBlocked)
$AltirisSWD.UpdatePolicy()
# Trigger Software Updates Check to get windows updates right away via Altiris
# ?????????? ?????????? ??????????
} catch{}