Skip to content

Instantly share code, notes, and snippets.

@konijn
Created January 4, 2021 08:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konijn/c3e96987296f3b307b3d580a9602b0e8 to your computer and use it in GitHub Desktop.
Save konijn/c3e96987296f3b307b3d580a9602b0e8 to your computer and use it in GitHub Desktop.
Get-ADUser -filter 'Name -like "*Prath*"' -Properties AccountExpirationDate | Select sAMAccountName, UserPrincipalName, distinguishedName, AccountExpirationDate
@konijn
Copy link
Author

konijn commented Mar 9, 2021

Get-ADUser -filter 'Name -like "*Srivas*"' -Properties WhenCreated | Select sAMAccountName, UserPrincipalName, distinguishedName, WhenCreated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment