How to check all active users in AD

Hi,

How can I check all the active users in AD, excluded the disabled accounts?
LVL 1
Methodman85Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian PiercePhotographerCommented:
What do you mean by "check"
What do you want to do withe them ?
Methodman85Author Commented:
I need to verify that all the active users are in a company wide group.
Brian PiercePhotographerCommented:
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Methodman85Author Commented:
This isn't returning all of the users, even with -limit 0 switch.
Do you have anything else.
KenMcFCommented:
You can use the quest AD cmdlets with powershell

Type get-help get-qaduser -full

There are many examples to get user information in there.

    C:\PS>Get-QADUser -InactiveFor 30 -disabled $Fasle
   
   
    Description
    -----------
    Retrieve the user accounts that remain in the expired state for 30 or more days, or have the password age of 30 or
    more days, or have not been used to log on for 30 or more days.


    -Disabled [<SwitchParameter>]
        Supply this parameter on the command line if you want the search results produced by this cmdlet to include onl
        y those user accounts that are disabled.
       
        Required?                    false
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
ckbhupenCommented:
Create a new query in Active Directory Users and Computers with following custom query:

(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike KlineCommented:
You can also use adfind, take a look at this question I helped with
http://www.experts-exchange.com/Database/LDAP/Q_26261412.html
That shows enabled users.  If you ant active I'd do something like Ken described.  Joe Richard's also has a good tool for finding old/stale computers and users
old computer is the tool (but works for users with the -users switch)
http://www.joeware.net/freetools/tools/oldcmp/index.htm
Thanks
Mike
Methodman85Author Commented:
(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

That worked good, now how to I get the listing of a particular group that I can export to Exel.
Mike KlineCommented:
Are you only using native tools?  I like adfind or powershell (quest cmdlets) for groups, but natively
dsget group "DN of group" -members
Thanks
Mike
ckbhupenCommented:
Try suggestions in this link:

http://social.technet.microsoft.com/Forums/en-US/winserverDS/thread/38f793ce-316a-48e8-9a8f-b3c37bdd3a89

After you save the query, Right click the query and choose "Export List"
ckbhupenCommented:
Create a new query in Active Directory Users and Computers with following custom query:

(&(objectClass=User)(memberOf=CN=myGroup,OU=MyContainer,DC=myOrg,DC=local))

After you save the query, Right click the query and choose "Export List"
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.