SCCM DP Cannot delete remote file Win32 Error 5

578

Last week I was working on operating system deployment and I came across a weird issue SCCM DP Cannot delete remote file Win32 Error 5. On one of the client machines, the TS failed due to content not available on distribution point. The DP was set up recently and was healthy. The TS was working fine on other sites. The issue came up for one particular site. So I re-distributed the content to the distribution point. The content distribution failed for the site DP and when i checked the content status of that package I saw the below error.

Package Transfer Manager failed to update the package “PKGID”, Version 13 on distribution point SERVERNAME. Review PkgXferMgr.log for more information about this failure.

Possible cause: Site server does not have sufficient rights to the source directory.
Solution: Verify that the site server computer account has at least Read access to the directory you specify as the source directory.

Possible cause: There is not enough disk space available on the distribution point.
Solution: Verify that there is enough free disk space available on the distribution point.

I had verified that it was not a disk space issue nor permission issue. So I went ahead and checked the PkgXferMgr.log file.

SCCM DP Cannot delete remote file Win32 Error 5

When I opened the PkgXferMgr.log file I found that the content was not being distributed. There were multiple errors in the log file. One this was clear that the package was not copied over to the distribution point.

Cannot create/open the remote file \\SERVER_NAME\SMS_DP$\3B08535B4ADD194F5661E1131C8E81AF373CA322CF669674CF1272095E5CAB95-P010020D.18.temp, Win32 error 5   SMS_PACKAGE_TRANSFER_MANAGER    10/06/2016 05:46:42    15744 (0x3D80)
CSendFileAction::SendFiles failed 0x80004005   SMS_PACKAGE_TRANSFER_MANAGER    10/06/2016 05:46:42    15744 (0x3D80)
CSendFileAction::SendFiles failed 0x80004005   SMS_PACKAGE_TRANSFER_MANAGER    10/06/2016 05:46:42    15744 (0x3D80)
CSendFileAction::SendContent failed 0x80004005   SMS_PACKAGE_TRANSFER_MANAGER    10/06/2016 05:46:42    15744 (0x3D80)

SCCM DP Cannot delete remote file Win32 Error 5

SCCM DP Cannot delete remote file Win32 Error 5

Resolution – When you see Win32 Error =5, the first step is to reboot the DP. If the file is locked or in use by a DP, rebooting DP shall help you. In case you reboot the DP and you still see the same error then you need to check if there is any security software like antivirus that is locking the file. Most the Antivirus software are configured to scan all the file types. In my case on the distribution point, Sophos antivirus was locking the temp file and was not allowing the content to be added. We had configured the exclusions in the Sophos to allow some file types but on this server the exclusion policy was not applied. After applying the correct policy the missing content was distributed to the DP successfully. The OSD process went smoothly after this.

  • Mike Compton

    Hi. It would be worth adding the link to the Microsoft Technet article listing all the recommended SCCM AV exclusions to this post i think.
    Is your exclusion part of thw official recommendations?