January 6, 2014
This PowerShell script will enumerate all user accounts in a Domain, calculate their UserAccountControl flags and create a report of the “interesting” flags in CSV format. The interesting flags are those you are interested in reporting on as documented in Microsoft KB305144 such as: SCRIPT ACCOUNTDISABLE HOMEDIR_REQUIRED LOCKOUT PASSWD_NOTREQD PASSWD_CANT_CHANGE ENCRYPTED_TEXT_PWD_ALLOWED TEMP_DUPLICATE_ACCOUNT NORMAL_ACCOUNT INTERDOMAIN_TRUST_ACCOUNT WORKSTATION_TRUST_ACCOUNT SERVER_TRUST_ACCOUNT DONT_EXPIRE_PASSWORD MNS_LOGON_ACCOUNT […]
Read the full article →
December 20, 2013
SCRIPT UPDATED 22nd September 2017 This PowerShell script will enumerate all user accounts in a Domain, calculate their estimated Token Size and create a report of the top x users in CSV format. However, before I talk about the script it’s important to provide some background information on Kerberos token size; how to calculate it; and […]
Read the full article →