• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1182
  • Last Modified:

Get-QADGroupMember Enabled Users

I'm running the command Get-QADGroupMember "Group Name" | Select Name

How do I only return results for enabled user accounts?
0
fireguy1125
Asked:
fireguy1125
1 Solution
 
Brad BouchardInformation Systems Security OfficerCommented:
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
 
becraigCommented:
Get-QADGroupMember "Group Name" -Enabled | Select Name
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now