Detect a plugged-in Bitlocker USB encryption key and notify admins.

MaciekK 11 Reputation points
2020-11-30T11:19:23.747+00:00

Hi Guys!

Is it possible to detect a plugged-in Bitlocker USB encryption key and notify administrators? Now, to boot to Windows 10 our users are required to plug in a Bitlocker key. After booting they should remove that USB key but sometimes users forgot to unplug the USB key.

Do you know maybe some kind of a tool or powershell script?

We can use Azure, Intune (Microsoft Endpoint Manger) and Powershell.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,546 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,176 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bagitman 581 Reputation points
    2020-11-30T19:26:59.747+00:00

    manage-bde-status is not right here as it only lists bitlocked drives but not drives with .bek files (B itlocker E ncryption K ey).

    What you could do: deploy a scheduled task that runs 5 minutes after logon and looks for .bek files in the root of all drives. Can you script that? If you need help, just say.
    What you should do: get rid of USB startup keys. Those don't belong into the hands of ordinary users, since they allow those users to manipulate the drives, decrypt them, make themselves admin and so on. Use TPM instead. All boards 2015 and newer have onboard TPMs or at least TPM headers or fTPMS.

    Edit: here's a script

    $sticks=Get-WmiObject Win32_Volume -Filter "DriveType='2'"
    $beks=foreach ($stick in $sticks) {gci $stick.caption*.bek -Attributes r+s+h}
    if (!$beks){exit}
    else {msg * /time:0 Unplug that Bitlocker stick!}
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.