- danovich.com.au -

For the enterprise sys admin by the enterprise sys admin

  • Home
  • About
  • Contact
  • RSS Feed

31

Mar

Query to show members of an AD group

Posted by danovich  Published in Scripting, Tools, Windows

You’ll often need a quick way to get the names of users in a particular Active Directory group into a text or Excel file for reporting or other reasons. You can use dsquery to achieve this easily: dsquery group -name “group name” | dsget group -members -expand | dsget user -fn -ln Of course you [...]

  • Share/Bookmark

Continue reading...

Tags: ad group membership, dsget, dsquery, group, group membership, Query to show members of an AD group, samid, username

2 comments

Recent Posts

  • Installing SQL Server 2005 on a Windows Server 2008 R2 Cluster fails
  • Add the classic menu theme to Office 2007 & 2010
  • New Microsoft TS certifications
  • SCCM clients not installing in native mode

Categories

  • AntiVirus (1)
  • App-V (1)
  • Certificates (2)
  • Exchange (6)
  • Geek (14)
  • Office Communications Server (8)
  • Scripting (13)
    • Powershell (9)
  • SMS / SCCM (17)
  • Storage (3)
  • Tools (28)
  • VMWare (2)
  • Windows (31)

Archive

  • August 2010 (3)
  • July 2010 (1)
  • June 2010 (4)
  • May 2010 (4)
  • April 2010 (2)
  • March 2010 (9)
  • February 2010 (7)
  • January 2010 (8)
  • December 2009 (1)
  • November 2009 (4)
  • October 2009 (5)
  • September 2009 (3)
  • August 2009 (2)
  • June 2009 (3)
  • May 2009 (1)
  • March 2009 (2)
  • February 2009 (4)
  • January 2009 (2)
  • December 2008 (7)

Random Quote

The mind is everything. What you think you become. — Buddha

Recommended Blogs

  • Michael Kleef blog
  • opsm.gr
  • Tao's System Management Blog

Tech Links

  • Dr Web online URL check
  • Live Mesh
  • Microsoft Connect
  • Microsoft Discussion Newsgroups
  • Microsoft IPD
  • Microsoft KB monitoring
  • Microsoft TechNet Forums
  • MX Lookup Tool
  • Speedtest
  • TVCatchup.com

Recent Entries

  • Installing SQL Server 2005 on a Windows Server 2008 R2 Cluster fails
  • Add the classic menu theme to Office 2007 & 2010
  • New Microsoft TS certifications
  • SCCM clients not installing in native mode
  • App-V sequenced applications not keeping settings / preferences
  • Group Policy Search
  • Great tool to install multiple applications at once
  • Windows 7 enable Recent Items via group policy
  • How to export RSS feeds in Outlook 2010
  • SuperFlow for SCCM Operating System Deployment via PXE

Recent Comments

  • goof1427 in Office Communicator error - Cannot synchronize add…
  • jrothlis in Add the classic menu theme to Office 2007 & 2010
  • liviui in Office Communicator error - Cannot synchronize add…
  • pcvchriskmg in Windows 7 enable Recent Items via group policy
  • danovich in Group Policy Search
  • jrothlis in Group Policy Search
  • bizzarro in Send SCCM task sequence email report
  • bizzarro in Send SCCM task sequence email report
  • ultrafris in Windows 7 enable Recent Items via group policy
  • danovich in Send SCCM task sequence email report
  • Random Selection of Posts

    • Creating a Windows Server 2003 or 2008 Cluster within Hyper-V using iSCSI shared storage
    • Group Policy Search
    • MSI Wind U100 netbook review
    • MSI file for Adobe Reader, Flash Player and Shockwave Player
    • Sysprep error – Setup was unable to change the password for user account Administrator
    • Exchange 2003 cluster with Symantec Endpoint Protection (SEP)
    • optushome.com.au emails stop working?
© 2009 - danovich.com.au - is proudly powered by WordPress.