The customer needs a task that will change the current SMP reference on the client machines: Redirect agents to a new SMP.
Run a Redirect Script on Clients
Create a New Run Script task, Manage>Jobs and Tasks>Right-click and select New then Task.
Scroll down and find Run Script, rename then copy and paste the following syntax in to the box.
REM Get the Altiris Agent install path FOR /F "tokens=2*" %%A IN ('REG.EXE QUERY "HKLM\Software\Altiris\Altiris Agent" /V "installdir"') DO SET AgentDir=%%B set tempbat=%temp%\AgentRedirect.bat"
REM Create temporary batch file to execute while the agent restarts echo ping localhost -n 30 >> %tempbat% echo "%AgentDir%\aexagentutil" /Server:FQDN of desired SMP > %tempbat% echo ping localhost -n 30 >> %tempbat% echo "%AgentDir%\aexagentutil" /restart >> %tempbat% echo exit >> %tempbat% REM Executes temporary batch file start "" /MIN %tempbat%
Click on 'Advanced...' under the 'Script Details' section and under the 'Script' tab change to "Hidden" under the 'Other' section.
Then click OK, and 'Save changes'.
Scroll down to New Client Job, click Add Existing.
Select the Run Script you just created, click OK.
Uncheck the box-Fail Job if any Task fails, Save Changes.
Click New Schedule, at this point you can put in a schedule or "Run it Now". Note: Only run this job once, No Repeat. Click Add and put in your Target or Computers. Click the Schedule button and you are done. It runs according to what you just set.
Note: The Cleanup Script below does have a pop-up window the user will see. Pop-up will be up 1-10 seconds, then runs in the background. Runs up to 2 minutes, and the agent will disappear in this process. Process completed when the agent is visible again
Subscribing will provide email updates when this Article is updated. Login is required.