SCCM Task Sequence Error 0x80004005 while retrieving policy

This post provides solution to SCCM task sequence error 0x80004005 while retrieving policy. Before you read further, I want to tell you that error 0x80004005 is a generic error. Which means there could be more than one solution for this error. Therefore you must examine the smsts.log file to find out the actual issue. In my case during the OSD the task sequence failed at the very initial step. This issue was observed on one of the VM’s. So here is the issue and it’s description.

Task Sequence fails with the following error message. An error occurred while retrieving policy for this computer (0x80004005). For more information, please contact your system administrator or helpdesk operator.

SCCM Task Sequence Error 0x80004005 while retrieving policyThe smsts.log file reveals the following.

unknown host (gethostbyname failed).
sending with winhttp failed; 80072ee7.
Failed to get client identity (80072ee7).
Failed to request for client TSPxe.
SyncTimeWithMP() failed. 80072ee7.
Failed to get time information from MP: http://MPserverFQDN.
An error occurred while retrieving policy for this computer (0x80004005).
For more information, contact your system administrator or helpdesk operator.
RegOpenKeyExW is unsuccessful for Software\Microsoft\SMS\Task Sequence.
GetTsRegValue() is unsuccessful. 0x80070002.
TS environment not initialized

SCCM Task Sequence Error 0x80004005 while retrieving policy

Looking at the log file details, you could make out that there is a time sync issue. The error “SyncTimeWithMP() failed 80072ee7” should give you clear info that there is some issue with time synchronization. To resolve this issue one must check the clock in the BIOS of the affected machine. Ensure that the time in BIOS matches the time in the forest where the SCCM server is located. In other words ensure the time settings are same with both SCCM and PXE client. If not you will end up seeing the time sync errors. If you correct this, I bet the deployment should continue successfully in next try.

Related Posts

8
Leave a Reply

avatar
3 Comment threads
5 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
newest oldest most voted
Sanjeev
Guest
Sanjeev

In continuation of my query earlier, I found out that the PC to be imaged gets IP from DHCP but can’t ping the local DP. I have several desktops of the same model and make but this happened since yesterday only. Since the local DP is not available, the TS failed. Can you please advise? Thanks

Sanjeev
Guest
Sanjeev

I was able to make the desktops with no errors suddenly TS stopped and gave the same error mentioned. I check the pre-boot log and found the exact errors mentioned above. I checked the BIOS time in the PC and it was correct. Can you please let me know what else could go wrong. I have made many PCs with the same TS and suddenly everything is stopped. I’m usinf Lenovo M900 series desktop. Please advise, Thanks

James
Guest
James

I just got the same errors above for 2 different laptops. Only those 2 laptops fail to PXE boot, and if done through USB-C Network adapter, I got the above errors of unknown host and sending with WINHTTP failed. The time is correct on both laptops. Anybody have any other ideas??

Al Din
Guest
Al Din

We had this issue back in the day when we started deploying Surface Pro 3 devices.
The time on the devices was way off.

I have a VBS script that runs as a pre-start command when launching WinPE. The script synchronises the time with our time server on the device and then continues.

Never had this issue since then.

Kevin
Guest
Kevin

Mind sharing the vb script?

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More