How to retrieve the list of users in active directory by power shell

%3CLINGO-SUB%20id%3D%22lingo-sub-3190983%22%20slang%3D%22en-US%22%3EHow%20to%20retrieve%20the%20list%20of%20users%20in%20active%20directory%20by%20power%20shell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3190983%22%20slang%3D%22en-US%22%3E%3CH1%20id%3D%22toc-hId--2131154370%22%20id%3D%22toc-hId--2131133476%22%20id%3D%22toc-hId--2131133476%22%3E%3CSPAN%3EHi%2C%3C%2FSPAN%3E%3C%2FH1%3E%3CDIV%20class%3D%22%22%3E%3CP%3EI%20will%20like%20to%20know%20how%20to%20retrieve%20all%20the%20users%20who%20exists%20in%20the%20active%20directory%20by%20powershell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYour%20help%20is%20much%20appreciated%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3190983%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3191630%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20retrieve%20the%20list%20of%20users%20in%20active%20directory%20by%20power%20shell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3191630%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1040814%22%20target%3D%22_blank%22%3E%40lgtyar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-Aduser%20-Filter%20*%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EBut%20that's%20too%20simple%20I%20guess%2C%20what%20do%20you%20want%3F%20Please%20check%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Factivedirectory%2Fget-aduser%3Fview%3Dwindowsserver2022-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Factivedirectory%2Fget-aduser%3Fview%3Dwindowsserver2022-ps%3C%2FA%3E%26nbsp%3Bfor%20more%20options%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

I will like to know how to retrieve all the users who exists in the active directory by powershell.

 

Your help is much appreciated :)

 

Thanks

2 Replies

@lgtyar 

 

Get-Aduser -Filter *

But that's too simple I guess, what do you want? Please check https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-aduser?view=windowsserver2022... for more options 

Did this anwers your question?