Solved

Net localgroup/net group cross domains

Posted on 2011-03-10
3
1,373 Views
Last Modified: 2012-05-11
Hello,

I have the following situation:

- there are 2 domains: domain1.contoso.com and domain2.contoso.com.(parent-child trust between domain1-contoso and domain2-contoso).
- there is a user from domain2 which want to see all members from a group from domain1.

I`ve tried net group or net localgroup command, but is not working because the domain controller who process the command is the primary DC from domain2 and it doesn`t know who is a specific group from domain1.
/domain switch is not working and i`m not able to specify the DC or the domain where the command should be processed.

Any help?
Thank you!
0
Comment
Question by:andreibutu
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
Use the "ds"-tools instead.
dsquery group "dc=domain1,dc=contoso,dc=com" -name "The Group Name" | dsget group -members
Or to see expanded nested group membership:
dsquery group "dc=domain1,dc=contoso,dc=com" -name "The Group Name" | dsget group -members -expand
Or, if he knows the LDAP path, of course a single dsget will do the trick, too:
dsget group "cn=The Group Name,ou=SomeOU,ou=SomeGroups,dc=domain1,dc=contoso,dc=com" -members
0
 
LVL 3

Author Comment

by:andreibutu
Comment Utility
yes, your solution is correct, now i`m adding some requirments... i must run such a command from a client computer which does not have admin pack installed in order to run ds tools :| .

what in that case?
0
 
LVL 82

Expert Comment

by:oBdA
Comment Utility
Either install adminpak.msi (you can install a subset of the admin tools if you don't want all of them), or make the ds...exe tools available in a file share, they don't require a special installation as far as I know.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Do you have users whose passwords are expiring and they are constantly calling you?  Well I sure did and needed a way to put an end to this.  We have a lot of remote users which would not be notified that their passwords were expiring since they wer…
Installing a printer using group policy preferences is not that hard let’s take a look at it. First lets open up your group policy console and edit the policy you want to add it to. I recommend creating a new policy for each printer makes it a l…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now