The C:\Windows\Temp folder is filling up with APT folders containing Altiris installation files

Article:TECH13550  |  Created: 2006-04-18  |  Updated: 2011-05-26  |  Article URL http://www.symantec.com/docs/TECH13550
Article Type
Technical Solution


Issue



In C:\Windows\Temp there are many APT# folders; each having a different number after them, such as APT0, APT1, etc. These folders all appear to have the same file in them, which could be an installation of a specific Agent, such as Application Metering, Software Delivery Solution, etc.


Environment



Notification Server 6.0 (any version)
Symantec Management Platform 7.0
Symantec Management Platform 7.1 MP1


Cause



Every time an Agent installation or upgrade task is executed, it creates an APT# folder with the MSI file in it. When the install task's policy is set to run multiple times on a schedule (every day, every hour, etc) and the collection always applies to every computer, it continually creates new folders.


Solution



Check the policy for the specific installation task, and if it is still needed, either change the collection it applies to, so only computers that require that agent will receive it, or change the task to Run as soon as computer is notified (Only runs once).  Once the task is no longer needed, disable the tasks, and the next time the Altiris Agent checks for updated policies, the task will stop running.

 

In general, the practice for dealing with sub-agent installation or upgrades is to push it out to Run Once, and it is generally best to keep it like this, cloning the task if needed for future updates.

 

Note: In case that you have multiple machines that have a large amount of APT folders and you want to clean out your Temp directory in an automatic way rather than going to each single machine and delete them manually, you can create a Task Server Task or a DS job that runs the following VBscript on a regular basis (in most cases running this task once should be enough):

 

--VBScript to remove APT files from c:\Windows\Temp. Script is below:

Set oFSO = CreateObject("Scripting.FileSystemObject")
Set OFWindows = oFSO.GetFolder("c:\windows\temp")
Set OWinFolders = OFWindows.SubFolders
For Each OWinFolder in OWinFolders
if Ucase(left(OWinFolder.name , 3)) = "APT" then OWinFolder.delete force
Next


Supplemental Materials

SourceETrack
Value2346022

Legacy ID



21858


Article URL http://www.symantec.com/docs/TECH13550


Terms of use for this information are found in Legal Notices