locked
Configuring RAID with HP Scripting Toolkit, Extra Directory RRS feed

  • Question

  • Environment:

    2008r2 Standard, MDT 2012 Update 1, Windows PE3

    Hello,

    I'm attempting to reduce my Microserver deployment procedure by a few more steps.

    Out of the Box I need to configure RAID, Enable TPM and License/add a user to ILO (For simplicity I'm just going to concentrate on RAID in this post).

    From research I decided the best method to go about this was to use the Extra Directory method in Windows PE.

    My Extra Directory is T:\Extra which contains Windows\System32\Drivers\HPSSTKIO?.sys & Scripting which contains HP Scripting Toolkit 9.6 & my three config files.

    I placed a 'Configure RAID' command line in the PreInstall stage (testing) both before and after the Gather Script, however when the task sequence failed each time.

    cmd /c "x:\scripting\hpssascripting.exe -i x:\scripting\gen8msraid.ini"

    The strange thing is the command executes and actually configures RAID as you would expect, MDT is able to format the hard drive, install the OS, however it fails at Postinstall 'Restart Computer'  (smsts.log failure section below).

    Any assistance would be appreciated.

    Thanks

    ![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="23:08:19.335+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="instruction.cxx:2957">
    <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="23:08:19.335+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:782">
    <![LOG[Executing command line: smsboot.exe /target:WinPE]LOG]!><time="23:08:19.335+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="commandline.cpp:805">
    <![LOG[========================= [ smsboot.exe ] =========================]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="Reboot" context="" type="1" thread="1276" file="rebootcomputer.cpp:184">
    <![LOG[Command line: '"smsboot.exe" /target:WinPE']LOG]!><time="23:08:19.351+000" date="04-27-2014" component="Reboot" context="" type="0" thread="1276" file="rebootcomputer.cpp:186">
    <![LOG[SMSTSRebootDelay=30]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="Reboot" context="" type="1" thread="1276" file="rebootcomputer.cpp:122">
    <![LOG[SMSTSRebootMessage=Initiating system reboot]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="Reboot" context="" type="1" thread="1276" file="rebootcomputer.cpp:122">
    <![LOG[SMSTSRebootRequested=WinPE]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="Reboot" context="" type="1" thread="1276" file="rebootcomputer.cpp:122">
    <![LOG[Process completed with exit code 0]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="commandline.cpp:1102">
    <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="instruction.cxx:3010">
    <![LOG[Successfully complete the action (Restart computer) with the exit win32 code 0]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="instruction.cxx:3036">
    <![LOG[Sending status message . . .]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utility.cxx:292">
    <![LOG[Executing in non SMS standalone mode. Ignoring send a task execution status message request]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utility.cxx:302">
    <![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:668">
    <![LOG[Expand a string: %_SMSTSMDataPath%\Logs]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:782">
    <![LOG[Deleting file without retry]LOG]!><time="23:08:19.351+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="ccmfile.cpp:1015">
    <![LOG[Clear local default environment]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:807">
    <![LOG[User did not specify local data drive]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="utils.cpp:1008">
    <![LOG[Volume C:\ has 996337958912 bytes of free space]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:364">
    <![LOG[Volume C:\ is not bootable]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:370">
    <![LOG[Volume W:\ has 476471296 bytes of free space]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:364">
    <![LOG[Volume W:\ is not bootable]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:370">
    <![LOG[Volume X:\ is not a fixed hard drive]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:345">
    <![LOG[Volume Z:\ is not a fixed hard drive]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:345">
    <![LOG[TSM root drive = ]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:380">
    <![LOG[We do not find an available volume to store the local data path]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:1023">
    <![LOG[Set a global environment variable _SMSTSNextInstructionPointer=49]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=49]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:386">
    <![LOG[Set a global environment variable _SMSTSInstructionStackString=42]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:668">
    <![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=42]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:414">
    <![LOG[Save the current environment block]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:833">
    <![LOG[pszPath[0] != L'\0', HRESULT=80070057 (c:\qfe\nts_sms_fre\sms\framework\core\ccmcore\path.cpp,58)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="path.cpp:58">
    <![LOG[Filesystem::Path::Add(sEnvPath, EnvDataFileName, sEnvPath), HRESULT=80070057 (e:\nts_sms_fre\sms\framework\tscore\environmentlib.cpp,639)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="environmentlib.cpp:639">
    <![LOG[Failed to save environment to  (80070057)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="2" thread="996" file="environmentlib.cpp:657">
    <![LOG[TS::Environment::SharedEnvironment.saveEnvironment(szPath), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\executionenv.cxx,842)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:842">
    <![LOG[Failed to save the current environment block. This is usually caused by a problem with the program. Please check the Microsoft Knowledge Base to determine if this is a known issue or contact Microsoft Support Services for further assistance.
    The parameter is incorrect. (Error: 80070057; Source: Windows)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="3" thread="996" file="executionenv.cxx:842">
    <![LOG[SaveEnvironment(), HRESULT=80070057 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\executionenv.cxx,420)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="executionenv.cxx:420">
    <![LOG[Failed to persist execution state. Error 0x(80070057)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="2" thread="996" file="executionenv.cxx:426">
    <![LOG[Failed to save execution state and environment to local hard disk]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="2" thread="996" file="engine.cxx:250">
    <![LOG[Reboot to local harddisk]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="engine.cxx:458">
    <![LOG[FALSE, HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\engine.cxx,584)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="engine.cxx:584">
    <![LOG[The task sequence execution engine can not reboot the machine because we failed to persist execution environment]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="3" thread="996" file="engine.cxx:584">
    <![LOG[CheckForRebootRequest(&bRebootInitiated), HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\executionengine\engine.cxx,274)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="engine.cxx:274">
    <![LOG[Fatal error is returned in check for reboot request of the action (Restart computer).
    Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="3" thread="996" file="engine.cxx:274">
    <![LOG[An error (0x80004005) is encountered in execution of the task sequence]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="3" thread="996" file="engine.cxx:349">
    <![LOG[Sending status message . . .]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utility.cxx:292">
    <![LOG[Executing in non SMS standalone mode. Ignoring send a task execution status message request]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utility.cxx:302">
    <![LOG[m_TSEngine.Execute(& m_eExecutionResult), HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,763)]LOG]!><time="23:08:19.366+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="tsmanager.cpp:763">
    <![LOG[Task Sequence Engine failed! Code: 80004005]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="3" thread="996" file="tsmanager.cpp:763">
    <![LOG[****************************************************************************]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="tsmanager.cpp:789">
    <![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="3" thread="996" file="tsmanager.cpp:790">
    <![LOG[Cleaning Up. Removing Authenticator]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="tsmanager.cpp:578">
    <![LOG[!sVolumeID.empty(), HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,467)]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="resolvesource.cpp:467">
    <![LOG[!sVolumeID.empty(), HRESULT=80004005 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,467)]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="resolvesource.cpp:467">
    <![LOG[!sTSMDataPath.empty(), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,1395)]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="resolvesource.cpp:1395">
    <![LOG[There is no TSM local data path being set]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:1400">
    <![LOG[Successfully unregistered Task Sequencing Environment COM Interface.]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="environmentlib.cpp:869">
    <![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="commandline.cpp:229">
    <![LOG[Set command line: "X:\Deploy\Tools\X64\TsProgressUI.exe" /Unregister]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="commandline.cpp:707">
    <![LOG[Executing command line: "X:\Deploy\Tools\X64\TsProgressUI.exe" /Unregister]LOG]!><time="23:08:19.382+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="commandline.cpp:805">
    <![LOG[==========[ TsProgressUI started in process 1196 ]==========]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TsProgressUI" context="" type="1" thread="1388" file="winmain.cpp:327">
    <![LOG[Command line: "X:\Deploy\Tools\X64\TsProgressUI.exe" /Unregister]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TsProgressUI" context="" type="0" thread="1388" file="winmain.cpp:330">
    <![LOG[Unregistering COM classes]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TsProgressUI" context="" type="1" thread="1388" file="winmain.cpp:202">
    <![LOG[Unregistering class objects]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TsProgressUI" context="" type="1" thread="1388" file="winmain.cpp:503">
    <![LOG[Shutdown complete.]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TsProgressUI" context="" type="1" thread="1388" file="winmain.cpp:520">
    <![LOG[Process completed with exit code 0]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="commandline.cpp:1102">
    <![LOG[Successfully unregistered TS Progress UI.]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="utils.cpp:1963">
    <![LOG[g_TSManager.Run(), HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,657)]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="0" thread="996" file="tsmanager.cpp:657">
    <![LOG[Error Task Sequence Manager failed to execute task sequence. Code 0x80004005]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="3" thread="996" file="tsmanager.cpp:689">
    <![LOG[Sending error status message]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="tsmanager.cpp:690">
    <![LOG[In non SMS staqndalone mode.Ignoring SendStatusMessage request]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="tsmanager.cpp:1541">
    <![LOG[Finalizing logging from process 576]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="tslogging.cpp:1736">
    <![LOG[Finalizing logs to root of first available drive]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="tslogging.cpp:1578">
    <![LOG[LOGGING: Setting log directory to "C:\SMSTSLog".]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSManager" context="" type="1" thread="996" file="tslogging.cpp:1803">
    <![LOG[Process completed with exit code 2147500037]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSMBootstrap" context="" type="1" thread="512" file="commandline.cpp:1102">
    <![LOG[Exiting with return code 0x80004005]LOG]!><time="23:08:19.398+000" date="04-27-2014" component="TSMBootstrap" context="" type="1" thread="512" file="tsmbootstrap.cpp:1118">
    <![LOG[==========[ TsProgressUI started in process 1884 ]==========]LOG]!><time="23:08:19.429+000" date="04-27-2014" component="TsProgressUI" context="" type="1" thread="464" file="winmain.cpp:327">
    <![LOG[Command line: "X:\Deploy\Tools\X64\TSProgressUI.exe"  /Unregister]LOG]!><time="23:08:19.429+000" date="04-27-2014" component="TsProgressUI" context="" type="0" thread="464" file="winmain.cpp:330">
    <![LOG[Unregistering COM classes]LOG]!><time="23:08:19.429+000" date="04-27-2014" component="TsProgressUI" context="" type="1" thread="464" file="winmain.cpp:202">
    <![LOG[Unregistering class objects]LOG]!><time="23:08:19.429+000" date="04-27-2014" component="TsProgressUI" context="" type="1" thread="464" file="winmain.cpp:503">
    <![LOG[Shutdown complete.]LOG]!><time="23:08:19.429+000" date="04-27-2014" component="TsProgressUI" context="" type="1" thread="464" file="winmain.cpp:520">


    • Edited by Andrew_ Monday, April 28, 2014 10:54 AM
    Monday, April 28, 2014 10:53 AM

Answers

All replies

  • You're getting the "Failed to save the current environment block." Problem.

    Most likely the HP machine is a uEFI box (check the bdd log for isUEFI = TRUE ), and you are using an older version of the WAIK/ADK.

    See if this answers your question:

    http://keithga.wordpress.com/2014/03/05/failed-to-save-the-current-environment-block/


    Keith Garner - keithga.wordpress.com

    Monday, April 28, 2014 5:12 PM
  • I was wondering if you ever found the root cause of your issue... Were you using uEFI and was that your issue?

    I’m experiencing the same issue on an HP 9480m device that’s set to legacy non-uEFI.  As you said above, MDT is able to partition and format the hard drive and applies the OS, however it fails to copy the MDT scripts, tools, and also doesn’t create the _SMSTaskSequence folder as expected and so nothing happens after the reboot into the OS.

    What I found is the scripts, tools, etc., are being copied to the X: drive while in PE instead of the V: drive...X: being the RAM drive and V: being the internal drive.

    How were you able to fix this and could you tell me where to get the HP Scripting Toolkit for RAID support on these hybrid devices??

    Thanks in advance!

    -Andy

    Thursday, October 16, 2014 10:47 PM