Hi, thanks for sharing. I was wondering whether you could add something to identify newly created accounts to the effects of:
$DateCutOff = (Get-Date).AddDays(-30)
Get-ADUser -Filter * -Properties whenCreated | where {$_.whenCreated -gt $DateCufOff} | FT Name, whenCreated