Simon May

Client and cloud

Enable and Activate TPM for BitLocker Pre-Provisioning in WinPE

Enable and Activate TPM for BitLocker Pre-Provisioning in WinPE

  • Comments 4
  • Likes

I have to say this one caught me out. I’m just setting up a task sequence to deploy Windows 8 and pre-provision BitLocker (which is wicked fast by the way!) and got caught with enabling and activating the TPM from WinPE.  The solution I came up with works for me, on a Samsung Series 7 Slate but might not work for all hardware vendors (TPM is a little tricky like that).

The process turned out to be pretty simple.

  1. Download the EnableBitLocker.vbs script from MSDN.
  2. Copy the file to my Configuration Manager 2012 SP1 Site Server.
  3. Edit the file and change the reference to “setup.exe /s” and “setup.exe /r” (shutdown and reboot in full Windows) to “wpeutil shutdown” and “wpeutil reboot” respectively. I did this because WinPE doesn’t include shutdown.exe but instead uses wpeutil to do the same(ish) thing.
  4. Created an Application Management package containing only the EnableBitLocker.vbs script and distributed it to my DPs.
  5. Added a Run Command Line task to my Windows 8 deployment task sequence, after Restart in Windows PE and before Pre-provision BitLocker.
  6. PXE booted and deployed my task sequence to my target machine.

The final effect takes advantage of Windows 8’s used space only encryption and starts encryption before the OS is even deployed, encrypting as the OS deploys – the net result is a fully encrypted machine within minutes!

Don’t forget to download Windows Server 2012, System Center and Windows 8 Enterprise to try this out and take a look at my other posts on System Center.

Comments
  • Hi, I looked for both to “setup.exe /s” and “setup.exe /r” but could not find it so I can edit. Can you assist?

  • I believe he is referencing the shutdown.exe commands and not setup.exe

  • Hi, can this be implemented for MDT or is this strictly for SCCM2012SP1

  • If your goal is to enable bitlocker in windows, it's easier if you use EASEUS partition master professional to hide and unhide your drive. You can also add a password to enter the Application EASEUS, so that can not be accessed by unauthorized users.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment