Solved

Get-QADGroupMember Enabled Users

Posted on 2014-04-03
2
1,084 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

Are your AD admin tools letting you down?

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

This article will help you understand what HashTables are and how to use them in PowerShell.
A brief introduction to what I consider to be the best editor for PowerShell.
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 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