SCCMEvan Posted March 4, 2015 Report post Posted March 4, 2015 I've been beating my head against the wall with this problem. I'd appreciate any suggestions on how to further troubleshoot it. Let me know if you need further information. We have a couple task sequences for deploying Win7 Ent and Win7 pro to a variety of machines in our offices, and adding a couple of applications. These have been working fine, and continue to work fine with all machines except for some Lenovo Z570 laptops, which to my mind rules out any cert issues, as has been suggested by some posts I've found with similar problems and log entries. Parsing through SMSTS.log files with CMtrace.exe has given me some errors to look into online, but nothing I've found has been able to resolve the problem. It seems like the issue is with the OSDGina and Task Sequencing Environment from the logs. I believe the problem to be a driver install that is needed to be added, but can't be sure. Our task sequence is pretty basic. In the apply windows Settings, the local admin account is enabled, and password set. This was my first clue that the TS wasn't working as I was unable to login to the laptop after completion using it, instead getting a message about the account being disabled. Later, during Apply Network settings, the computer is set to join the domain, which it does successfully. I'm unable to successfully use the WMI query to install specific driver package a created, as the Model name query I'm using is reported as false. (I've tried a variety of model names, but think it's an issue with how Lenovo enters their info, or the fact that this is a refurbed machine, and may not have had that data entered correctly when repaired. I've also tried using the driver package query as Manufacturer like Lenovo, but that hasn't worked either. I've tried with a couple different task sequences, with and without wmi called specific driver package installations, and all are failing. Attached is a SMSTS.log file from the basic win7 pro TS with no driver package wmi call. and below is the end section . ==============================[ OSDSetupHook.exe ]============================== OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Logging successfully initialized to C:\_SMSTaskSequence\Logs OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Executing task sequence OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Loading the Task Sequencing Environment from "C:\_SMSTaskSequence\TSEnv.dat". OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00350031004100300031003600420036002D0046003000440045002D0034003700350032002D0042003900370043002D003500340045003600460033003800360041003900310032007D00' OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Environment scope successfully created: Global\{51A016B6-F0DE-4752-B97C-54E6F386A912} OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Creating key 'Software\Microsoft\SMS\47006C006F00620061006C005C007B00420041003300410033003900300030002D0043004100360044002D0034006100630031002D0038004300320038002D003500300037003300410046004300320032004200300033007D00' OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Environment scope successfully created: Global\{BA3A3900-CA6D-4ac1-8C28-5073AFC22B03} OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) CryptDecrypt (hKey, 0, 1, 0, pData, &dwDecryptedLen), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,165) OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) SMS::Crypto::DES::DecryptBuffer( pbKey, nKeySize, pbEncryptedFile, cbFileLow, pbPlain, nPlainSize ), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\smscrypt\windes.cpp,591) OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) SMS::Crypto::DES::DecryptBufferFromFile( (BYTE*)sFileKey.c_str(), (DWORD)(sFileKey.size() * sizeof(WCHAR)), pszFilePath, pbDecryptedBuffer, cbDecryptedBuffer ), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,151) OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) LoadFromFile(sEnvPath, shXml), HRESULT=80090005 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,750) OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Failed to load environment from C:\_SMSTaskSequence\TSEnv.dat (80090005) OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) SharedEnvironment.loadEnvironment( sTSEnvDataFile ), HRESULT=80090005 (e:\nts_sccm_release\sms\client\osdeployment\osdgina\basesetuphook.cpp,380) OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Failed to load the Task Sequencing Environment object from "C:\_SMSTaskSequence\TSEnv.dat". Code(0x80090005) OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) LoadEnvironment( loadDir, bEnvLoaded ), HRESULT=80090005 (e:\nts_sccm_release\sms\client\osdeployment\osdgina\basesetuphook.cpp,1417) OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Uninstalling Setup Hook OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Removing setup hook from registry. OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Successfully removed C:\WINDOWS\system32\OSDGINA.DLL OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Could not delete the file C:\WINDOWS\system32\OSDSETUPHOOK.EXE. Error code 5 OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Marking the file C:\WINDOWS\system32\OSDSETUPHOOK.EXE for deletion on Reboot OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Successfully removed C:\WINDOWS\system32\OSDSETUPHOOK.EXE OSDSetupHook 3/3/2015 5:05:05 PM 2408 (0x0968) Successfully removed C:\WINDOWS\system32\_SMSOSDSetup OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) ::RegOpenKeyExW (HKEY_LOCAL_MACHINE, c_szSMSTSKey, 0, KEY_READ, &hSubKey), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,258) OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) RegOpenKeyExW failed for Software\Microsoft\SMS\Task Sequence OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) GetTsRegValue() failed. 0x80070002. OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) End program: OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) Finalizing logging from process 2404 OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) Successfully finalized logs to SMS client log directory from C:\WINDOWS\TEMP OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) Cleaning up task sequencing logging configuration. OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) Cleaning up task sequence folder OSDSetupHook 3/3/2015 5:05:06 PM 2408 (0x0968) Deleting volume ID file C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ... OSDSetupHook 3/3/2015 5:05:11 PM 2408 (0x0968) this->run( bReboot ), HRESULT=80090005 (e:\nts_sccm_release\sms\client\osdeployment\osdgina\vistasetuphook.cpp,222) OSDSetupHook 3/3/2015 5:05:11 PM 2408 (0x0968) pHook->execute(), HRESULT=80090005 (e:\nts_sccm_release\sms\client\osdeployment\osdgina\osdsetuphook.cpp,284) OSDSetupHook 3/3/2015 5:05:11 PM 2408 (0x0968) Failed to execute task sequence (0x80090005) OSDSetupHook 3/3/2015 5:05:11 PM 2408 (0x0968) smsts.log Quote Share this post Link to post Share on other sites More sharing options...
SCCMEvan Posted March 5, 2015 Report post Posted March 5, 2015 Just as an update, I've managed to successfully deploy the TS to the Lenovo Z570 laptop yesterday. I'm not 100% sure of the solution, but I did 2 things: Remove existing driver package, and clean out non essential drivers/files (x86, setup.exe's etc.) from the drivers source folder and recreate driver package on test task sequence (copied from existing, and removed other driver package deployments.) Set BIOS SATA mode from Legacy to AHCI. Quote Share this post Link to post Share on other sites More sharing options...