# Ps Session connection problem

**URL:** <https://forums.powershell.org/t/ps-session-connection-problem/15953>\
**Category:** PowerShell Help\
**Created:** [March 12, 2021, 8:33pm UTC](https://forums.powershell.org/t/ps-session-connection-problem/15953 "2021-03-12T20:33:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pozso123](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@pozso123](https://forums.powershell.org/u/pozso123)\
**Post date:** [March 12, 2021, 8:33pm UTC](https://forums.powershell.org/t/ps-session-connection-problem/15953/1 "2021-03-12T20:33:59Z")

</div>

Hello i have some problame when i using the following command to begin ps session.

```auto
$session = New-PSSession -HostName "192.168.2.198" -UserName szilv

```

Error is the following after it:

> New-PSSession: [192.168.2.198] Connecting to remote server 192.168.2.198 failed with the following error message : A Rendszerfelügyeleti webszolgáltatások szolgáltatás nem tudja feldolgozni a kérelmet. A művelet egy HTTP-hiba miatt félbeszakadt. A HTTP-hiba (12152) kódja A kiszolgáló érvénytelen vagy ismeretlen választ adott . For more information, see the about\_Remote\_Troubleshooting Help topic.

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [March 12, 2021, 9:14pm UTC](https://forums.powershell.org/t/ps-session-connection-problem/15953/2 "2021-03-12T21:14:39Z")

</div>

Hello Pozso. Please update your post with the error translated to English.

Next, have you tried using the hostname instead of the IP? What does Test-WSMan return for that target? Is it a Windows or Linux host you’re trying to connect to? What version of powershell. Please try to provide relevant info when posting, it will make it easier for you and us to find a solution.

---

<div class="post-metadata">

**Author:** ![pozso123](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@pozso123](https://forums.powershell.org/u/pozso123)\
**Post date:** [March 12, 2021, 9:22pm UTC](https://forums.powershell.org/t/ps-session-connection-problem/15953/3 "2021-03-12T21:22:15Z")

</div>

Hello thank you for replay!

It is the english version

> New-PSSession: [192.168.2.198] Connecting to remote server 192.168.2.198 failed with the following error message: System Administration Web Services could not process the request. Operation aborted due to an HTTP error. HTTP Error (12152) Code The server returned an invalid or unknown response. For more information, see the about\_Remote\_Troubleshooting Help topic.

return message of Test-WSMan: 0x803380AB  
That is Windows computer and also the remote too. It is windows to windows connection. On both computer have 7.1 powershell

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [March 12, 2021, 9:24pm UTC](https://forums.powershell.org/t/ps-session-connection-problem/15953/4 "2021-03-12T21:24:21Z")

</div>

Thank you, that’s quite different than what Google translated it to.

> The service of Member States’ web services is not a matter of course. The HTTP interface is automatically deleted. The HTTP code (12152) is assigned to the value of the user or the user

🤣

---

<div class="post-metadata">

**Author:** ![pozso123](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@pozso123](https://forums.powershell.org/u/pozso123)\
**Post date:** [March 12, 2021, 9:25pm UTC](https://forums.powershell.org/t/ps-session-connection-problem/15953/5 "2021-03-12T21:25:56Z")

</div>

Oh but is from Google translater XD

I made a mistake, when i tested the connection, the network of it was unreachable .  
And not is the point, when i restored it, the message from it not changed… so the problem may localy.

I can remember i have already met with that before. Sime kind of self signed certification was the solution on both computer but i cannot sure in it. And when i happened, somehow need to fore that HTTP connection, or allow service to go throught the windows firewall , on both computer. But i am not a sure in it…

---

<div class="post-metadata">

**Author:** ![tonyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tonyd/32/1041_2.png) [@tonyd](https://forums.powershell.org/u/tonyd)\
**Post date:** [March 15, 2021, 4:47pm UTC](https://forums.powershell.org/t/ps-session-connection-problem/15953/6 "2021-03-15T16:47:02Z")

</div>

Not sure I completely understand, but have you tried as suggested by Doug to use the hostname versus the IP? I have found remote powershell plays much better using hostnames. These of course need to be resolvable via DNS in some way. If DNS is not available, try using a local hosts file.

---

<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:27pm UTC](https://forums.powershell.org/t/ps-session-connection-problem/15953/7 "2024-05-16T20:27:44Z")

</div>

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


