none
Active directory some time show error in powershell

    Question

  • Hello

            We have one server to management my active directory . this server difference subnet with active directory .some time when I open powershell from server management and remain some time or 1 day then run command again then it show error

    Thanks

    Thursday, March 30, 2017 1:54 AM

All replies

  • Hi,

    To fix the problem, try to add authenticate like below.

    -Server $DomainController -Credential <Username>

    Best Regards,

    Jay


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Thursday, March 30, 2017 5:43 AM
    Moderator
  • Hi

    could you please give me full command ,

    I can not issue Server $DomainController -Credential <Username>

    Thanks


    Thursday, March 30, 2017 8:54 AM
  • Hi,

    Run the command like below.

    Get-ADUser <username> -Server  <server name> -Credential  <username>

    Best Regards,

    Jay


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, March 30, 2017 9:26 AM
    Moderator
  • looks like there is issues with ports being open between your management server and all the AD servers that you have.

    if you dont specify a specific domain controller , it will try to connect to any one of the domain controller via the DClocator process. 

    Hence for a management server, its recommended to have the port tcp 9389 , for ADWS open to all the domain controllers that way you will not get this error.

    Thursday, March 30, 2017 4:57 PM