This topic contains 6 replies, has 4 voices, and was last updated by
April 13, 2017 at 12:01 am #68619
I hope someone can help me with an error I am receiving. I have ServerA in Domain1 and my workstation in Domain2.
When I am on ServerA I can do "Get-DHCPServerInDC" and it returns a list of DHCP servers as expected.
However when I Enter-PSSession to the server from my workstation using the correct credentials for Domain1 I get the following error:
Failed to initialize directory service resources for domain Domain1.
+ CategoryInfo : ResourceUnavailable: (PS_DhcpServerInDC:root/Microsoft/..._DhcpServerInDC) [Get-DhcpServerInDC], CimException
+ FullyQualifiedErrorId : DHCP 20070,Get-DhcpServerInDC
+ PSComputerName : ServerA.Domain1
I have also tried Invoke-Command instead of Enter-PSSession but I get the same error. I also get the same error if I Enter-PSSession or Invoke-Command from another server in the same Domain as ServerA.
Thanks a lot!
April 13, 2017 at 1:25 am #68626ParticipantPoints: 21Rank: Member
Pretty sure you might be hitting some form of double hop, but it may not be _the_ double hop. Wondering if there is something going on under the covers of the AD module that's creating the issue. Also what if any relationship do the two domains have, it's not clear from your original description if they are child/parent or completely unrelated.
April 13, 2017 at 2:15 am #68629
Thanks for the reply. The domains are completely seperate from each other no trusts set up either.
April 13, 2017 at 2:33 am #68631ParticipantPoints: 21Rank: Member
Yeah i think in that case you're hitting a double hop.
April 13, 2017 at 2:53 am #68634
OK I'll check it out and let you know.. thanks
Although I do get the same error even when I try to Enter-PSSession or Invoke-Command from a server in the same domain. It works fine locally however on the server.
June 27, 2017 at 3:22 am #73705ParticipantPoints: 0Rank: Member
Did you ever get this resolved? I have run into the same issue and am struggling.
June 27, 2017 at 8:21 pm #73777ParticipantPoints: 1Rank: Member
On same domain:
Are able to enter a pssession, then run get-dhcpserverindc?
enter-pssession -computername servera -credential domain1\administrator
[ServerA]: PS c:\administrator\documents get-dhcpserverindc
The topic ‘Failed to initialize directory services’ is closed to new replies.