# PSSession

**URL:** <https://forums.powershell.org/t/pssession/10159>\
**Category:** PowerShell Help\
**Created:** [February 19, 2018, 11:22am UTC](https://forums.powershell.org/t/pssession/10159 "2018-02-19T11:22:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajassim](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@ajassim](https://forums.powershell.org/u/ajassim)\
**Post date:** [February 19, 2018, 11:22am UTC](https://forums.powershell.org/t/pssession/10159/1 "2018-02-19T11:22:41Z")

</div>

Hello Everyone,

First I’m new to PowerShell and I was trying to establish PSSession to a remote computer within the same domain and it worked first and now all of a sudden I cannot establish the connection again and keeps getting:

New-PSSession : [AHCDC02] Connecting to remote server AHCDC02 failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the  
service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the  
destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: “winrm quickconfig”. For more information, see the  
about\_Remote\_Troubleshooting Help topic.

WinRM is running

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [February 19, 2018, 11:24am UTC](https://forums.powershell.org/t/pssession/10159/2 "2018-02-19T11:24:18Z")

</div>

Try restarting the WinRM service, first.

Ensure DNS is resolving the correct IP address. You can try pinging the computer by name to check the IP returned.

Then, if you can access the console of the same computer, see if that computer can connect to itself.

---

<div class="post-metadata">

**Author:** ![ajassim](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@ajassim](https://forums.powershell.org/u/ajassim)\
**Post date:** [February 19, 2018, 11:29am UTC](https://forums.powershell.org/t/pssession/10159/3 "2018-02-19T11:29:33Z")

</div>

Thanks Don for the prompt reply!

I did Restarted the WinRM, made sure that the DNS is resolving the computername.

Now I’m at the console of the target computer and I cannot connect to it.

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [February 19, 2018, 11:34am UTC](https://forums.powershell.org/t/pssession/10159/4 "2018-02-19T11:34:37Z")

</div>

If the computer cannot connect to itself, then something is borked. But you’re down to basic network troubleshooting, here - you’re “below” PowerShell at this point. Check the local firewall, for example. Restart the computer. Try re-running Enable-PSRemoting. But ultimately, until the computer can connect to itself, nothing else is going to work.

---

<div class="post-metadata">

**Author:** ![ajassim](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@ajassim](https://forums.powershell.org/u/ajassim)\
**Post date:** [February 19, 2018, 11:49am UTC](https://forums.powershell.org/t/pssession/10159/5 "2018-02-19T11:49:07Z")

</div>

Thank you so much Don!

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:36pm UTC](https://forums.powershell.org/t/pssession/10159/6 "2024-05-16T20:36:19Z")

</div>

Closed on May 16, 2024, 8:36pm UTC


