Directory Admin
PowerShell / Azure / Active Directory / Windows Server / Security and more ...
Wednesday, February 15, 2017
Powershell: Get a user that have test in his name or in the description
Just use the following command:
Get-AdUser -filter {(name -Like "*test*") -or (description -Like "*test*")} -Properties name, samaccountname, description |sort-object name | Out-GridView
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment