AntiMalware Status

List Users and Groups created in Active Directory in the Last 24 Hours

Just quick [easyazon_link identifier=”1787126307″ locale=”US” tag=”wn0d5-20″] PowerShell [/easyazon_link] snippet to get list of created users in last 24 hours in your [easyazon_link identifier=”B06VYFQNH4″ locale=”US” tag=”wn0d5-20″] Active Directory [/easyazon_link].

$When = ((Get-Date).AddDays(-1)).Date
Get-ADUser -Filter {whenCreated -ge $When} -Properties whenCreated

To get list of created groups in last 24 hours

$When = ((Get-Date).AddDays(-1)).Date
Get-ADGroup -Filter {whenChanged -ge $When} -Properties whenChanged

Easily you can create nice report and send the output by email to keep record of changes.

Leave a Reply