# WinRM is not working between domain and workgroup

**URL:** <https://forums.powershell.org/t/winrm-is-not-working-between-domain-and-workgroup/10251>\
**Category:** PowerShell Help\
**Created:** [March 6, 2018, 1:26pm UTC](https://forums.powershell.org/t/winrm-is-not-working-between-domain-and-workgroup/10251 "2018-03-06T13:26:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackswan99](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/blackswan99/32/372_2.png) [@blackswan99](https://forums.powershell.org/u/blackswan99)\
**Post date:** [March 6, 2018, 1:26pm UTC](https://forums.powershell.org/t/winrm-is-not-working-between-domain-and-workgroup/10251/1 "2018-03-06T13:26:21Z")

</div>

Hi,

I’m new to powershell and trying to manage a few workstations (Win7 & Win10) in a workgroup from my computer (part of a domain, Win10). Unfortunately I’m not successful.

The following I’m trying:

```
Enable-PSRemoting -force

$RemoteComputer = "RemoteWS01"
$LocalComputer = "MyPC01.domain.local"

Set-Item wsman:\localhost\Client\TrustedHosts -value $LocalComputer
Set-Item wsman:\localhost\Client\TrustedHosts -value $RemoteComputer

$User = "Administrator" // remote account on WS, that's not me
$Passwd = ConvertTo-SecureString "BestPWever" -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential ($User, $Passwd)

$Sess = New-PSSession -Computer $RemoteComputer -Credentials $Cred -Authentication Negotiate
Invoke-Command -Session $Sess -ScriptBlock { ping localhost }
```

The “New-PSSession” line fails, but I don’t know why. What do I have to take care about, when connecting from a domain to a workgroup? WinRM service is running on RemoteWS01 and firewall is completely turned off with network profile set to “private”. Any ideas?

Best regards  
Blackswan

---

<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:** [March 6, 2018, 1:59pm UTC](https://forums.powershell.org/t/winrm-is-not-working-between-domain-and-workgroup/10251/2 "2018-03-06T13:59:00Z")

</div>

Negotiate won’t work, you’ll need basic and HTTPS endpoints. Check out “Secrets of PowerShell Remoting” on our eBooks menu, I covered this exact scenario.

---

<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/winrm-is-not-working-between-domain-and-workgroup/10251/3 "2024-05-16T20:36:16Z")

</div>

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


