Access is denied when attempting to delete PCT package from client computers
search cancel

Access is denied when attempting to delete PCT package from client computers

book

Article ID: 176515

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Clients cannot delete the PCT package because of a read only attribute that is set on a couple of files.

Large numbers of Item not found errors with the package guid of the PCT package are appearing in the ItemNotFound directory on the server.

Log File Name: D:\Altiris\Notification Server\Logs\a.log
Priority: 4
Date: 05.09.2005 11:33:37
Tick Count: 10820187
Host Name: NF001S
Process: AeXNSAgent.exe (1636)
Thread ID: 2424
Module: AeXSWDAgent.dll
Source: SWDAgent
Description: Deleting inactive package 'PC Transplant Capture Agent-Packet' PC Transplant Capture Agent Package#B4EE7B2B-58B8-462C-9069-845207D2FE01

Log File Name: D:\Altiris\Notification Server\Logs\a.log
Priority: 2
Date: 05.09.2005 11:33:37
Tick Count: 10820250
Host Name: NF001S
Process: AeXNSAgent.exe (1636)
Thread ID: 2424
Module: AexPackageDelivery.dll
Source: RemoveDirectoryTree
Description: Cannot delete file: D:\ALTIRIS\ALTIRIS AGENT\Software Delivery\PC Transplant Capture Agent Package#B4EE7B2B-58B8-462C-9069-845207D2FE01\cache\AgentUpgrade.exe: Access is denied (5)

Log File Name: D:\Altiris\Notification Server\Logs\a.log
Priority: 2
Date: 05.09.2005 11:33:37
Tick Count: 10820328
Host Name: NF001S
Process: AeXNSAgent.exe (1636)
Thread ID: 2424
Module: AexPackageDelivery.dll
Source: RemoveDirectoryTree
Description: Cannot delete file: D:\ALTIRIS\ALTIRIS AGENT\Software Delivery\PC Transplant Capture Agent Package#B4EE7B2B-58B8-462C-9069-845207D2FE01\cache\setup.iss: Access is denied (5)

Cause

Two files are set as read only on the client machines.

Resolution

Run the following in a batch file on all client computers experiencing the problem. This could be run through a software delivery task, Deployment Server job, or any other means available.

attrib -R "C:\Program Files\Altiris\Altiris Agent\Software Delivery\{B4EE7B2B-58B8-462C-9069-845207D2FE01}\cache\setup.iss"
attrib -R "C:\Program Files\Altiris\Altiris Agent\Software Delivery\{B4EE7B2B-58B8-462C-9069-845207D2FE01}\cache\AgentUpgrade.exe"

A second script could then be run that would delete the package in question if it would help to have the cleanup happen quicker than the client would delete the files.