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 …

PowerShell – QUIC Protocol – Security Concerns – Disable

The QUIC protocol, which stands for “Quick UDP Internet Connections,” is a transport layer network protocol initially developed by Google. It was designed to improve the performance of connection-oriented web applications that currently use TCP (Transmission Control Protocol) by leveraging UDP (User Datagram Protocol) instead.   Key Features and Benefits of QUIC Reduced Latency: QUIC Read More …

PowerShell – Return Current User from QUser

Quser.exe, short for Query User, is a utility in the Windows Command Prompt that allows administrators to view information about currently logged-on users. It’s particularly useful in environments with multiple users, such as corporate networks or shared computers. I like to use it, because it just works, and is available on all the Windows computers. Read More …

Intune – Forcing PowerShell – Device Sync

This is how you would force an Intune sync for ALL devices.   Code.ps1   # MrNetTek # eddiejackson.net # 7/10/2024 # free for public use # free to claim as your own Install-Module -Name Microsoft.Graph.Intune -Force -AllowClobber Install-Module -Name Microsoft.Graph.DeviceManagement.Actions -Force -AllowClobber Install-Module -Name Microsoft.Graph.DeviceManagement -Force -AllowClobber # Connect to Graph Connect-MgGraph -scope DeviceManagementManagedDevices.PrivilegedOperations.All, Read More …