Discovering Domain Group Membership for an Account

Today was not the first time that I’ve had to verify that BizTalk service accounts were in the right domain groups, but didn’t have access to AD to check.  Fortunately a bit of time with Dr. Google unearthed this command line tool:

net user {username} /domain

This will output all the domain groups that the account belongs to, along with quite a bit of other information:

The request will be processed at a domain controller for domain <MyDomain>
User name                    dan.toomey
Full Name                    Dan Toomey
Comment
User's comment
Country code                 000 (System Default)
Account active               Yes
Account expires              Never
Password last set            14/05/2010 1:43:42 PM
Password expires             Never
Password changeable          17/05/2010 1:43:42 PM
Password required            Yes
User may change password     Yes
Workstations allowed         All
Logon script                 Logon.bat
User profile
Home directory
Last logon                   13/03/2013 7:52:58 AM
Logon hours allowed          All
Local Group Memberships
Global Group memberships     *All Staff            *DomainUsers
                             *Biztalk TFS Contribut*SSO Administrators
                             *Projects_Team        *Biztalk Admins

The command completed successfully.

Now I don’t have to spend time searching for this anymore! 🙂

Unknown's avatarAbout Dan Toomey
Enterprise integration geek, Microsoft Azure MVP, Pluralsight author, public speaker, MCSE, MCT, MCTS & former professional musician.

Leave a comment

John Glisson - Geek of the Cloth

Thoughts on integration, technology and what-not...

Prashant BizTalk And Azure Integration Blogs

My Integration Experiences - BizTalk And Azure Integration

The CRUCIBLE

THINK: It's not illegal....yet.....

Architecture for cloud and integration

Abdul Rafay's experiences with software architecture, integration, cloud and things around it.

BizTalk musings

Issues, patterns and useful tips for BizTalk development

EAI Guy.net

Enterprise Applicaiton Integration and SOA 2.0

Connected Pawns

Mainly BizTalk & Little Chess

Adventures inside the Message Box

BizTalk, Azure, and other tools in the Microsoft stack - Johann Cooper

Biz(Talk)2

Talk, talk and more talk about BizTalk

Richard Seroter's Architecture Musings

Blog Featuring Links, Code, Thoughts, and Experiences with Software, AI, and Cloud Services

Sandro Pereira BizTalk Blog

My notes about BizTalk Server 2004, 2006, 2006 R2, 2009, 2010, 2013 and now also Windows Azure BizTalk Services.

Mind Over Messaging

Musings on BizTalk, Azure, and Enterprise Integration

WordPress.com News

The latest news on WordPress.com and the WordPress community.