Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

VBScript to clear the Altiris Agent Cache

Created: 01 Nov 2012 | 1 comment

Hi,

I was talking to Symantec support recently regarding this script to clear the Altiris Agent Cache. The guy I spoke to said this script is not completely silent, but he knew of someone that converted it to VBScript. Just wondering if any of you have a copy of this in VBScript?

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%\AgentClean.bat"

REM Create temporary batch file to execute while the agent restarts
echo "%AgentDir%\aexagentutil" /stop > %tempbat%
echo rmdir "%AgentDir%\TaskManagement" /s /q >> %tempbat%
echo ping localhost -n 30 >> %tempbat%
echo "%AgentDir%\aexagentutil" /start >> %tempbat%
echo exit >> %tempbat%

REM Executes temporary batch file
start "" /MIN %tempbat%

Thanks.

Comments 1 CommentJump to latest comment

andykn101's picture

If you deliver this using a Managed Software Delivery policy you can use the Advanced option > Run tab and deselect "Allow user to interact with installing software" and it should run silently.

Or, if you have DS 6.x you can use Script Options to run the window as hidden. I did this recently on a 2,500 client estate and had no end user calls logged.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.