Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Command line to list users in a Windows Active Directory group?

Featured Replies

  • Moderators

Is there a command line way to list all the users in a particular Active Directory group?


Of course you can see who is in the group by going to 



Manage Computer --> Local User / Groups --> Groups and double clicking the group.



Maybe you prefer using the command line method which is



dsget group "CN=GroupName,DC=domain,DC=name,DC=com" -members
 

OR try



dsquery user -samid aa_kz2p4w | dsget user -memberof -expand

OR try



net group /domain
 

  • 4 weeks later...
  • Moderators

This worked awesome to find which users are a member of a group





dsquery group -name "GG-NAO-HosangIT-ACS-Read-Write" -d nao.global.hosangit.com | dsget group -members


This worked awesome to find what groups a user is a member of to validate they exist in AD





dsquery user -samid svc_firemon | dsget user -display -memberof -expand


Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.