Author: admin

0

Create a list of your Group Policy Objects using PowerShell

 

0

List all domain users and their last logon time and UserAccountControl flags

The following PowerShell one-liner lists all users by lastlogon (human readable date) and their UserAccountControl flags.

Most common UserAccountControl flags are: 512 NORMAL_ACCOUNT 514 NORMAL_ACCOUNT, ACCOUNTDISABLE 66048 NORMAL_ACCOUNT, DONT_EXPIRE_PASSWORD 66050 ACCOUNTDISABLE, NORMAL_ACCOUNT, DONT_EXPIRE_PASSWORD...