Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8321935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:11:44+00:00 2026-06-08T23:11:44+00:00

I cannot connect to remote server using enter-pssession -computername serverA . My scenario: I

  • 0

I cannot connect to remote server using enter-pssession -computername serverA. My scenario:

  • I have 2 Win 2003 R2 servers in the same domain. ServerA is WSUS server, serverB is a domain controller
  • Both servers have enabled powershell remoting
  • Both servers have configured winrm (winrm quickconfig)
  • Both servers have TrustedHosts set to *
  • setspn.exe is set up correctly (http, https, wsman etc.)
  • Both servers have FireWall turned off
  • Both servers have PowerShell 2.0

I am trying to enter-pssession -computername serverA under the domain admin credentials from serverB to serverA and it throws the following error:

“””Enter-PSSession : Connection to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.”””

When I try to enter-pssession -computername serverB under the domain admin credentials from serverA it works fine! It also works if I use localhost so: enter-pssession -computername localhost under the domain admin credentials (on serverA) works as well, but when I try the hostname on serverA (instead of localhost) enter-pssession -computername serverA it throws the same error.

I also tried to use get-credential and provide different types of credentials, but it did not help. The only thing which helped was using a local (not domain) administrator account and running enter-pssession -computername serverA -credentials $cred and it worked, but only locally, I was able to do this from local machine (from serverA to itself) but not from serverB to serverA under the serverA\administrator credentials.

Any ideas?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T23:11:47+00:00Added an answer on June 8, 2026 at 11:11 pm

    First of all I created credential variable with my domain admin account:

    $cred = get-credential – I typed my domain\username and password

    Then I used IP address instead of hostname in -ComputerName parameter, so the enter-pssession looks like:

    Enter-Pssession -ComputerName 192.168.1.111 -Credential $cred

    this approach works for the invoke-command as well

    invoke-command -ComputerName 192.168.1.111 -Credential $cred -ScriptBlock {hostname}

    I still do not know why it does not work with the hostname and why do I have to create $cred, but as I need a quick solution, this works fine for me.

    Thanks for help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am tring to connect a remote server via openvpn using C#. I am
I cannot connect to remote MS SQL server express 2008 R2. On the server,
I have installed SQL server 08 express edition and then tried to connect using
I cannot connect to the SQL Server instance if I do not start management
Dictionary cannot have two values with same key. please tell which logic/algorithm being used
I am using SQL Server 2008 express edition. I have connected before. Now I
I'm currently using JSch as the library for connecting to my remote server. In
I'm trying to use the built in cookieSession object of connect, but I cannot
Cannot dump Stack Overflow XML file into SQL Server 2008. Could you please explain
I have SQL Server 2000 and 2008 installed on a Windows XP Pro box.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.