Here is part of the log that contains the error message.
The group (Software) has been successfully completed TSManager 8/1/2017 2:00:07 PM 3704 (0x0E78)
Set authenticator in transport TSManager 8/1/2017 2:00:07 PM 3704 (0x0E78)
Updated security on object C:\_SMSTaskSequence. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Set a global environment variable _SMSTSNextInstructionPointer=38 TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Set a TS execution environment variable _SMSTSNextInstructionPointer=38 TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Set a global environment variable _SMSTSInstructionStackString= TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Set a TS execution environment variable _SMSTSInstructionStackString= TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Save the current environment block TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Set a global environment variable _SMSTSLastActionRetryCount=0 TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
The task exeuction engine successfully completed the execution TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Set authenticator in transport TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
**************************************************************************** TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Execution engine result code: Success (0) TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Cleaning Up. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Removing Authenticator TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Cleaning up task sequence folder TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Unable to delete file C:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Failed to delete directory 'C:\_SMSTaskSequence' TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
SetNamedSecurityInfo() failed. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
SetObjectOwner() failed. 0x80070005. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Deleting volume ID file C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ... TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Successfully unregistered Task Sequencing Environment COM Interface. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Executing command line: "C:\WINDOWS\CCM\TsProgressUI.exe" /Unregister TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
==========[ TsProgressUI started in process 2844 ]========== TsProgressUI 8/1/2017 2:00:08 PM 1852 (0x073C)
Command line: "C:\WINDOWS\CCM\TsProgressUI.exe" /Unregister TsProgressUI 8/1/2017 2:00:08 PM 1852 (0x073C)
Unregistering COM classes TsProgressUI 8/1/2017 2:00:08 PM 1852 (0x073C)
Unregistering class objects TsProgressUI 8/1/2017 2:00:08 PM 1852 (0x073C)
Shutdown complete. TsProgressUI 8/1/2017 2:00:08 PM 1852 (0x073C)
Process completed with exit code 0 TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Successfully unregistered TS Progress UI. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Package. Error code 0x80070002 TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Start to cleanup TS policy TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
End TS policy cleanup TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Start to evaluate TS policy with lock TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Updating settings in \\.\root\ccm\policy\machine\actualconfig TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Total RequestedConfig policy instance(s) : 511 TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
New/Changed ActualConfig policy instance(s) : 1 TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Raising event:
instance of CCM_PolicyAgent_SettingsEvaluationComplete
{
ClientID = "GUID:335599cb-1342-4ae4-9090-6bd95404fb5a";
DateTime = "20170801190008.969000+000";
PolicyNamespace = "\\\\.\\root\\ccm\\policy\\machine\\actualconfig";
ProcessID = 4036;
ThreadID = 3704;
};
TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Successfully submitted event to the Status Agent. TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
End TS policy evaluation TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Policy evaluation initiated TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Sending success status message TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
Set authenticator in transport TSManager 8/1/2017 2:00:08 PM 3704 (0x0E78)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSManager 8/1/2017 2:00:09 PM 3704 (0x0E78)
GetTsRegValue() is unsuccessful. 0x80070002. TSManager 8/1/2017 2:00:09 PM 3704 (0x0E78)
End program: TSManager 8/1/2017 2:00:09 PM 3704 (0x0E78)
Finalize logging request ignored from process 4036 TSManager 8/1/2017 2:00:09 PM 3704 (0x0E78)
Waiting for CcmExec service to be fully operational TSManager 8/1/2017 2:00:09 PM 3704 (0x0E78)
CcmExec service is up and fully operational TSManager 8/1/2017 2:00:09 PM 3704 (0x0E78)
Workgroup client is in Unknown location LocationServices 8/1/2017 2:00:09 PM 3704 (0x0E78)
Current Management Point is <empty> ClientLocation 8/1/2017 2:00:09 PM 3704 (0x0E78)
socket 'connect' failed; 8007274d TSManager 8/1/2017 2:00:10 PM 3704 (0x0E78)
Failed to connect to MP :80 TSManager 8/1/2017 2:00:10 PM 3704 (0x0E78)
socket 'connect' failed; 8007274d TSManager 8/1/2017 2:00:11 PM 3704 (0x0E78)
Failed to connect to MP :443 TSManager 8/1/2017 2:00:11 PM 3704 (0x0E78)
socket 'connect' failed; 8007274d TSManager 8/1/2017 2:00:15 PM 3704 (0x0E78)
Failed to connect to MP :80 TSManager 8/1/2017 2:00:15 PM 3704 (0x0E78)
socket 'connect' failed; 8007274d TSManager 8/1/2017 2:00:16 PM 3704 (0x0E78)
Failed to connect to MP :443 TSManager 8/1/2017 2:00:16 PM 3704 (0x0E78)
socket 'connect' failed; 8007274d TSManager 8/1/2017 2:00:20 PM 3704 (0x0E78)
Failed to connect to MP :80 TSManager 8/1/2017 2:00:20 PM 3704 (0x0E78)
socket 'connect' failed; 8007274d TSManager 8/1/2017 2:00:21 PM 3704 (0x0E78)
Failed to connect to MP :443 TSManager 8/1/2017 2:00:21 PM 3704 (0x0E78)
Attempting to release request using {F7AB48B0-A0EC-4346-8F94-DE11D135E941} TSManager 8/1/2017 2:00:24 PM 3704 (0x0E78)
ReleaseRequest failed with error code 0x80004005 TSManager 8/1/2017 2:00:24 PM 3704 (0x0E78)
Task Sequence Manager could not release active TS request. code 80004005 TSManager 8/1/2017 2:00:24 PM 3704 (0x0E78)
Process completed with exit code 0 TSMBootstrap 8/1/2017 2:00:24 PM 3860 (0x0F14)
Exiting with return code 0x00000000 TSMBootstrap 8/1/2017 2:00:24 PM 3860 (0x0F14)
Process completed with exit code 0 OSDSetupHook 8/1/2017 2:00:24 PM 900 (0x0384)
Task sequence completed 0x00000000 OSDSetupHook 8/1/2017 2:00:24 PM 900 (0x0384)
Restoring original desktop wallpaper. OSDSetupHook 8/1/2017 2:00:24 PM 900 (0x0384)
Resume SCCM Client. OSDSetupHook 8/1/2017 2:00:24 PM 900 (0x0384)
Exiting SetClientProvisioningMode 0x00000000 OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Uninstalling Setup Hook OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Removing setup hook from registry. OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Successfully removed C:\WINDOWS\system32\OSDGINA.DLL OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Could not delete the file C:\WINDOWS\system32\OSDSETUPHOOK.EXE. Error code 5 OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Marking the file C:\WINDOWS\system32\OSDSETUPHOOK.EXE for deletion on Reboot OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Successfully removed C:\WINDOWS\system32\OSDSETUPHOOK.EXE OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Successfully removed C:\WINDOWS\system32\_SMSOSDSetup OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,833) OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
RegQueryValueExW is unsuccessful for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
GetTsRegValue() is unsuccessful. 0x80070002. OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
End program: OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Finalizing logging from process 2128 OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)
Successfully finalized logs to SMS client log directory from C:\WINDOWS\CCM\Logs OSDSetupHook 8/1/2017 2:00:30 PM 900 (0x0384)