Ivanti Deployment Agent – Poll Now

Issues a poll now to the designated endpoint. It will also force the endpoint to download the assigned config regardless of the installation schedule as long as the “Allow update initiation” is selected for the assigned deployment group.

Version: 2.2.9
Created: 2018-04-12T01:21:47.407
Modified: 2019-08-14T10:44:35.183
Creator: Landon Winburn
Downloads: 27
Tags:
The Script Copy Script Copied to clipboard

” Find the installation folder for the AppSense/Ivanti Deployment Agent/CCA and invoke ccacmd.exe to force it to poll the Management Center

Option Explicit

Dim WshShell, FSO , strUploadDir , strCCA , iStatus

Set WshShell = Wscript.CreateObject(“Wscript.Shell”)
Set FSO = Wscript.CreateObject(“Scripting.FileSystemObject”)

on error resume next
strUploadDir = WshShell.RegRead( “HKLMSOFTWAREAppSense TechnologiesCommunications Agentupload dir” )
on error goto 0

If StrUploadDir = “” Then
Wscript.echo “Error: failed to find installation folder, is the Deployment Agent installed?”
Wscript.Quit 1
End If

‘ Remove any trailing
If Right( strUploadDir , 1 ) = “” Then
strUploadDir = Left( strUploadDir , Len( strUploadDir ) – 1 )
End If

strCCA = Left( strUploadDir , InStrRev( strUploadDir , “” )) & “ccacmd.exe”

If NOT Fso.FileExists( strCCA ) Then
Wscript.Echo “Error: ” & strCCA & ” not found.”
Wscript.Quit 2
Else
iStatus = WshShell.Run( “””” & strCCA & “”” /UpdateConfigs”, 0, True )

Wscript.Echo “Poll Now complete – status is ” & iStatus
End If

START YOUR TRIAL

Get Your Download Link

Gain access to ControlUp from your PC. Register and get a link to start your Free Trial.