Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get-QADGroupMember Enabled Users

Posted on 2014-04-03
2
Medium Priority
?
1,171 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 2000 total points
ID: 39976903
Get-QADGroupMember "Group Name" -Enabled | Select Name
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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.

963 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