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
Thx
ASKER
Doesn't work...
PS C:\Users\administrator.xxx xxx> 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
PS C:\Users\administrator.xxx
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")
Mobile..
Get-ad user -filter * (-properties title -eq "director" or "manager")
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thx
Get-adviser -filter * -properties title -eq director or