Link to home
Avatar of AXISHK
AXISHK

asked on

List AD user with Powershell

Any idea how to list out all active users in AD with title contain either Director or Manager ?

Thx
Avatar of Ben Hart
Ben Hart
Flag of United States of America image

Pulling from memory, which might be spotty at this hour...


Get-adviser -filter * -properties title -eq director or
Avatar of AXISHK
AXISHK

ASKER

Doesn't work...

PS C:\Users\administrator.xxxxxx> Get-adviser -filter * -properties title -eq director
Get-adviser : The term 'Get-adviser' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-adviser -filter * -properties title -eq director
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-adviser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Sorry I'm
Mobile..

Get-ad user -filter * (-properties title -eq "director" or "manager")
SOLUTION
Avatar of Ben Hart
Ben Hart
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of nashiooka
nashiooka

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
ASKER CERTIFIED SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of AXISHK

ASKER

Thx