The customer is trying to deploy an image to a client machine. The task process fails and while reviewing the DSTasks.log file, the following entry is noticed:
[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."
Deployment Solution 8.x
In this particular case, the issue is caused by Error return code from GetFile() is -2147024877.
-2147024877, or 0x80070013, means "The media is write protected".
When the client machine is trying to download and write "drivers.manifest.txt" from his package server, the destination drive is write protected, so the file can't be added.
It 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.
Please use "Diskpart" to identify what is the current attribute of the destination drive:
Note that 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 in order to read more about these steps you can use to do this.