PowerShell – Return BitLocker Passwords using Pattern Matching
This will return BitLocker passwords—and only the passwords—using pattern matching. Code.ps1 # MrNetTek # eddiejackson.net # 9/11/2024 # free for public use # free to claim as your own # Run manage-bde command and capture the output $manageBdeOutput = & manage-bde -protectors -get C: 2>&1 # Define our password pattern $passwordPattern = “\b(\d{6}-\d{6}-\d{6}-\d{6}-\d{6}-\d{6}-\d{6}-\d{6})\b” # Read More …