Initialization of TPM requires additional keystroke in BIOS (Windows 7 Ultimate)
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.
May 22nd, 2011 1:49am
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
Free Windows Admin Tool Kit Click here and download it now
May 29th, 2011 4:13am