Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Get-QADGroupMember Enabled Users

Posted on 2014-04-03
2
Medium Priority
?
1,145 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
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 to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

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