When trying to deploy an image to a client machine the task process fails and the DSTasks.log files included the following:
[2018/12/10 13:32:31.31 1644:1244 0] SMPPackage.cpp@652: Error in downloading file from HTTP.source :http://<SiteServerFQDN>/Altiris/PS/Share/pkggroup_{3d09ab4c-bf69-4702-9062-787ce14288c4}/{20827DDD-C698-49E8-B312-830DF1D935B2}/cache/drivers.manifest.txt and dest :D:\Program Files\Symantec\Deployment\DriversDB\drivers.manifest.txt.Error return code from GetFile() is -2147024877
[2018/12/10 13:32:30.937 1644:1244 2] Function Name is util::CSMPPackage::ParsePackageInfoXML(),file name is SMPPackage.cpp and Line no 360. Return XML is =<Response><PackageServers><PackageServerFound>true</PackageServerFound><PackageServer><Name><SiteServerFQDN></Name><IPAddress>192.0.2.123</IPAddress><ResourceGuid>216b693b-7259-498f-850a-e6b2657c5231</ResourceGuid><IsHTTP>true</IsHTTP><SharePathList></SharePathList><UNCPath>\\<SiteServerFQDN>\PkgSvrHostE$\{20827DDD-C698-49E8-B312-830DF1D935B2}\cache</UNCPath><HTTPPath>http://<SiteServerFQDN>/Altiris/PS/Share/pkggroup_{3d09ab4c-bf69-4702-9062-787ce14288c4}/{20827DDD-C698-49E8-B312-830DF1D935B2}/cache</HTTPPath><HTTPSPath></HTTPSPath><CEMPath></CEMPath></PackageServer></PackageServers></Response>[2018/12/10 13:32:30.937 1644:1244 2] Function:util::CSMPPackage::Initialiaze(),File:SMPPackage.cpp and Line:109.<SiteServerFQDN> have selected as a PS[2018/12/10 13:32:31.31 1644:1244 0] SMPPackage.cpp@652: Error in downloading file from HTTP.source :http://<SiteServerFQDN>/Altiris/PS/Share/pkggroup_{3d09ab4c-bf69-4702-9062-787ce14288c4}/{20827DDD-C698-49E8-B312-830DF1D935B2}/cache/drivers.manifest.txt and dest :D:\Program Files\Symantec\Deployment\DriversDB\drivers.manifest.txt. Error return code from GetFile() is -2147024877[2018/12/10 13:32:31.31 1644:1244 0] File:ExecuteCommand.cpp,Line:4370 ERROR: Exception has occured in function SMPPackage.cpp() at Line No 653. Type of exception is GeneralError. Error is Default Message: Exception in CSMPPackageException. Error Description is "util::CSMPPackage::GetFileFromHTTP". Value of Windows error code = 6 and message is " The handle is invalid."
DS 8.x
In this particular case, the issue causes error: "Error return code from GetFile() is -2147024877"or return code "0x80070013" and these mean that "The media is write protected".
When the client machine is trying to download and write the "drivers.manifest.txt" from your package server, the destination drive is write protected, so the file can't be added.
This could be caused by a BIOS configuration.
The destination drive, in this example the D:/ drive was flagged as "Read-Only". Even outside the deployment process, if you try to create a folder or even save a dummy text file, you get the same error: 'The disk is write protected."
Use "Diskpart" to identify what the current attribute of the destination drive is:
NOTE: This normally fixes the problem in Windows, but it may not remain in place after a reboot. This can happen if the drive is being made read-only again by some other program or the OS.
Please refer to Microsoft documentation if more information is need to complete the required steps to resolve this issue.