How about this?
Get-ADUser -Filter "description -like '*active*'"
EDIT: fixed bad quoting.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello...I have a scenario where in AD user properties description contain specific word like Active....just like (Description:ComapanyName-Active)
I need to create script or command to find all user name where their description contains active word.
please guide ..I am beginner for scripting in AD.
Thanks
Rich
How about this?
Get-ADUser -Filter "description -like '*active*'"
EDIT: fixed bad quoting.