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 …

PowerShell – Detect AzureAD Device or Azure VDI

Building upon the previous post, let’s extend our detection capability to include Azure VDI.   Code.ps1 # MrNetTek # eddiejackson.net # 9/11/2024 # free for public use # free to claim as your own # Function to detect if FSLogix is installed function Test-FSLogix { param ( [string]$Path = “C:\Program Files\FSLogix” ) return Test-Path $Path Read More …