Skip to content

Ad-GetGroupMember on trusted domain

Featured Replies

Hi All,

 

We have a two-way trust between two domains, and everything works as expected.

 

One thing I'm trying to do is to use the command AD-GetGroupMember to see who are the members on groups on the other domain. The command runs fine but it only list the users from remote domain that are on the group: the users from the local domain, who are in the group, are not listed.

 

Doing some research I found the following information: This cmdlet does not work when a group has members located in a different forest, and the forest does not have Active Directory Web Service running.

 

So I went to check the ADWS status. It looks fine, when I test locally it works as expected:

 

SERVICE_NAME: adws

TYPE : 10 WIN32_OWN_PROCESS

STATE : 4 RUNNING (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)

WIN32_EXIT_CODE : 0 (0x0)

SERVICE_EXIT_CODE : 0 (0x0)

CHECKPOINT : 0x0

WAIT_HINT : 0x0

 

But when I try to access the ADWS on the other domain, I get the following error:

[sC] EnumQueryServicesStatus:OpenService FAILED 5:
Access is denied.

 

 

This test I ran on the primary domain controller, where the trust was made.

 

Anyone had any issue like this? Any tips for this desperate sysadmin? :)

 

 

Thanks!

  • 11 months later...

Do you see any errors in Repadmin /replsum, check this on both the domains. I think you'll find some..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.