PowerShell – How to list AD object creation date

How to find an user or group object’s creation date in AD.

CLS
Import-Module -Name ActiveDirectory 
$week = (Get-Date).AddDays(-15)
Get-ADUser -Filter * -Properties * | where { $_.whenCreated -ge $week } | `
select Name,whenCreated

It will list this kind of output


image

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.