Get-ADSecure is a place for practical Active Directory security: what to check, why it matters, and scripts that do the checking for you.
This first post is a sample. Edit or delete it once you have a real one.
How scripts are shared
Short snippets go straight into the post, like this read-only check for enabled accounts whose passwords never expire:
Get-ADUser -Filter 'PasswordNeverExpires -eq $true -and Enabled -eq $true' `
-Properties PasswordNeverExpires, PasswordLastSet |
Select-Object Name, SamAccountName, PasswordLastSet |
Sort-Object PasswordLastSet
Full scripts live in the scripts folder on GitHub, where you can read the history, download them, or open an issue. The complete version of the check above is Get-PasswordNeverExpires.ps1.
Before you run anything
Read a script before you run it, and try it in a lab or against a test OU first. Everything published here says at the top whether it only reads from the directory or also changes it.