简体   繁体   中英

Windows 2008 server Powershell Active Directory -> Get user creation date

i just need a list of all AD users and their creation date. Something like this:

Julian Ross: 2020-02-01 Mark Lenders: 2019-03-03 Oliver Hutton: 2018-03-01

Ordered by creation date descending.

Is it possible? Thank you!

Try this:

Get-ADUser -Filter * -properties * | Sort-Object whenCreated -Descending | ForEach {
  "$($_.samAccountName): $($_.whenCreated)"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM