Solved

Net localgroup/net group cross domains

Posted on 2011-03-10
3
1,390 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 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 35092969
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
ID: 35093973
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 84

Expert Comment

by:oBdA
ID: 35094022
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In-place Upgrading Dirsync to Azure AD Connect
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

830 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