Suspend BitLocker Temporarily
This script will check if BitLocker is currently in an active state, and if so it will run the Suspend-BitLocker cmdlet.
This script will check if BitLocker is currently in an active state, and if so it will run the Suspend-BitLocker cmdlet.
I wrote this script because I had a need to detect the current state of a VPN connection. With Windows 10, you can use the “Get-VpnConnection” cmdlet. However, if you are working in an environment where that commandlet is not available you can use a WMI query to determine the VPN Connection State.
This PowerShell command will allow you to add a list of systems to a specified collection in SCCM. Get-Content “C:\system_list_to_add.txt” | ForEach { Write-Output “Adding System: $_”; Add-CMDeviceCollectionDirectMembershipRule -CollectionName “Computer Add Collection” -ResourceID (Get-CMDevice -Name $_).ResourceID }
From the PowerShell command line run:
Awhile ago I needed to find the Serial Number of a remote machine so I could pull the drivers, traveling to see that machine became very tedious and took time. So I did some searching and came accross this command that you can run via-command line with either powershell or by remotely connecting to the […]