locked
Initialization of TPM requires additional keystroke in BIOS (Windows 7 Ultimate) RRS feed

  • Question

  • Hello there,

    I am in the midst of building a VBS script to enable BitLocker on Dell Latitude E4310. Basically I am using the default script provide by Microsoft -> EnableBitLocker.vbs, however I can say around 60% of the script has been modified to fit our environment. By default the original laptop image has TPM enable by default in BIOS, however it still need to be initialized before the BitLocker can be enabled. My problem now is although the script can be initialized from WMI, the process requires the machine to be rebooted and 'MODIFY' button to be selected during startup (BIOS mode) to allow the initialization process to be completed.

    'Sample of the script to initialize TPM that requires the laptop to be rebooted

    *****************************************************************************************************

    If (strPT = 0) then
     EchoStatusMsg("The platform does not need for transition.")
    Else
     If strPT = 1 then
      strStatusData = "Shutting down system to finish enabling the TPM."
      EchoStatusMsg(strStatusData)
      strStatusTPM = strStatusData
      oReboot = WSHShell.Run("shutdown.exe /s /t 10",2,True)
             '***** Add status code???
     Else
      If strPT = 2 then
       EchoStatusMsg("Rebooting system to finish enabling the TPM.")
       oReboot = WSHShell.Run("shutdown.exe /r /t 10",2,True)
       '***** Add status code???
      Else
       If strPT = 3 Then
        strStatusData = "The TPM transition is vendor-specific and cannot continue.Contact your vendor for instructions.Process is exiting."
        EchoStatusMsg(strStatusData)
        CreateStatusMIF strStatusData
        strStatusCode = 0
        WScript.Quit -1
       End If
      End If
         End If
    End If

    *****************************************************************************************************

    Is there a way (WMI, VBS) to skip the process and allow the TPM to be initialized without extra reboot/keystroke? My target is to limit or restrict the user interactions during the enabling process, Any response and help on this matter is highly appreciated.

    Sunday, May 22, 2011 5:49 AM

Answers

  • Hi,

     

    According to the situation, this inquiry would best be posted to script forum:

     

    http://social.technet.microsoft.com/Forums/en/ITCG/threads

     

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.

     

    Regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Tuesday, May 24, 2011 9:26 AM
    Moderator

All replies

  • Hi,

     

    According to the situation, this inquiry would best be posted to script forum:

     

    http://social.technet.microsoft.com/Forums/en/ITCG/threads

     

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.

     

    Regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Tuesday, May 24, 2011 9:26 AM
    Moderator
  • Hello Magon,

    Thank you very much for directing me the correct way of raising this question, it is highly appreciated.

    I have posted the same question on the recommended link, thus feel free to close this thread.

    Please let me know if you want me to close this from my side.

    Thanks and regards,

    Syidie77

    Sunday, May 29, 2011 8:13 AM