how to get of list of AD user name where discription conains some Active word .

Richkm 151 Reputation points
2022-03-28T11:29:35.313+00:00

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

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2022-03-28T14:24:33.897+00:00

    How about this?

    Get-ADUser -Filter "description -like '*active*'"
    

    EDIT: fixed bad quoting.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.