I occasionally run into a 80004005 error when working with SCCM operating system deployment task sequences. The error generally displays immediately after putting in the password for the bootable media/PXE boot, and the smsts.log appears similar to the following:
The issue here is that the date and time on the client are incorrect. This problem can be verified while in WinPE by pressing F8 to bring up a command prompt (assuming this option is enabled in the boot image) and using the following two commands to view the current date and time values:
The most simple and recommended way to fix this is to reboot into the BIOS/UEFI and set the date and time to the appropriate values there.
But what if I’m working on a system like a Microsoft Surface Book that doesn’t let me modify the date and time?
I was recently surprised to learn that the UEFI for MS’s beloved Surface Books do not let you change nor even view the current system date and time. In fact, the firmware seems to be the same super-minimal UEFI used in the regular Surface and Surface Pro lines. Therefore changing the time is done a little differently on devices like this.
First reboot to the SCCM bootable media or PXE boot. Once in WinPE, before entering the password, press F8 to bring up a command prompt (again assuming this option is enabled in the boot image) and use the following two commands to modify the date and time values:
Setting the values will look something like this:
After the date and time have been corrected, close the command prompt and continue with initiating the task sequence.