Script to Check HD Encrypted Using BitLocker

Script to Check HD Encrypted Using BitLocker

This sample script, originally on this blog post, shows how you can script a check on hard drives to report if they have been encrypted with BitLocker and/or BiltLocker To Go.

Do you have an alternative script or way to check if BL is enabled on a hard drive? Please share in this article - it is the Wiki way!

Here is how you can view, disable and enable BitLocker features from the Windows PowerShell prompt.
(For this example, Windows BitLocker needs to be enabled on the c: drive.)
PS > $drives = get-wmiobject -namespace root\CIMv2\Security\MicrosoftVolumeEncryption -class Win32_EncryptableVolume
PS> $drives | format-table DriveLetter, PersistentVolumeID -autosize
PS> $BitLockDrive = $drives[0]
PS> $BitLockDrive.GetProtectionStatus()
PS> $BitLockDrive.DisableKeyProtectors()
PS> $BitLockDrive.EnableKeyProtectors()

 

 

 

 

 

Leave a Comment
  • Please add 4 and 7 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Ed Price - MSFT edited Revision 5. Comment: Title, tags

  • Craig Lussier edited Revision 3. Comment: added en-US to tags and title

  • Ed Price MSFT edited Revision 2. Comment: Updated title per style standards.

Page 1 of 1 (3 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Ed Price MSFT edited Revision 2. Comment: Updated title per style standards.

  • Craig Lussier edited Revision 3. Comment: added en-US to tags and title

  • Ed Price - MSFT edited Revision 5. Comment: Title, tags

Page 1 of 1 (3 items)