Exporting TPM Owner Key and BitLocker Recovery Password from Active Directory...
Synopsis: When looking up a BitLocker Recovery Password or TPM Owner Key, the process can be quite laborious. This post contains a PowerShell script to help automate the process of manually looking at...
View ArticleADFS v3 on Server 2012 R2 – Allow Chrome to automatically sign-in internally
Symptom: When upgrading from ADFS v2.0 to ADFS v3 built natively into Server 2012 R2, I noticed Chrome stopped auto-logging in people when trying to hit the ADFS server from inside the corporate...
View ArticlePowerShell command to find all disabled users in Active Directory
Here is a quick powershell command to find all users inside of your Active Directory domain that have been marked as disabled (this will exclude disabled computers): Get-ADUser -Filter {Enabled -eq...
View ArticleGet MD5 Hash of a file via PowerShell/Windows
Want to check the hash of a huge file you downloaded on your shady network and have a machine running powershell? Then you are in luck! Execute the following script to output the hash of the file you...
View ArticleGet samaccount/username out of Active Directory via PowerShell
Here is how to get a list of everyone’s username out of active directory. Get-ADUser -Filter * | FT SamAccountName -A
View ArticleCommon PowerShell Commands for Office 365
Here are some commands that are handy to use for Office 365. #Assign user credentials to variable “LiveCred” $LiveCred = Get-Credential #Connect to your Cloud-hosted Exchange using the credential...
View ArticlePowerShell Script To Create Folders From CSV
This script will read in a csv named users.csv and create a bunch of directories from it. A log file will be written named logfile.log ########################################################### #...
View ArticlePowerShell – Disabled Execution
If you see an error like this in PowerShell: File ****************** cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details....
View Article