Solved

Get-QADGroupMember Enabled Users

Posted on 2014-04-03
2
1,102 Views
Last Modified: 2014-04-04
I'm running the command Get-QADGroupMember "Group Name" | Select Name

How do I only return results for enabled user accounts?
0
Comment
Question by:fireguy1125
2 Comments
 
LVL 17

Expert Comment

by:Brad Bouchard
ID: 39976887
Try adding "-limit 0" & "inactive -0" to your command per this:

http://technet.microsoft.com/en-us/library/cc725702.aspx

as that should return all users (-limit 0 meaning all users) who have been inactive for 0 weeks (so if a user has been inactive for at least 1 week it will return that as inactive and won't display that user for you).

Extra support here:
http://social.technet.microsoft.com/Forums/windowsserver/en-US/a7730c54-90c2-496e-87f0-b79eb280a42e/dsquery-for-active-users-only?forum=winserverDS



Edit:  Sorry I posted the user commands... look here for group commands...
http://technet.microsoft.com/en-us/library/cc754525.aspx
0
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 39976903
Get-QADGroupMember "Group Name" -Enabled | Select Name
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question