# PSsession between Two machines which is not in domain

**URL:** <https://forums.powershell.org/t/pssession-between-two-machines-which-is-not-in-domain/2340>\
**Category:** PowerShell Help\
**Created:** [March 12, 2014, 5:03pm UTC](https://forums.powershell.org/t/pssession-between-two-machines-which-is-not-in-domain/2340 "2014-03-12T17:03:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![selvakumar-r](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@selvakumar-r](https://forums.powershell.org/u/selvakumar-r)\
**Post date:** [March 12, 2014, 5:03pm UTC](https://forums.powershell.org/t/pssession-between-two-machines-which-is-not-in-domain/2340/1 "2014-03-12T17:03:49Z")

</div>

hello  
I need to get the remote of powershell from one machine to another the problem is those machines are not in domain. may i know whether it is possible to do that.

---

<div class="post-metadata">

**Author:** ![robert-westerlund](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/robert-westerlund/32/877_2.png) [@robert-westerlund](https://forums.powershell.org/u/robert-westerlund)\
**Post date:** [March 12, 2014, 6:29pm UTC](https://forums.powershell.org/t/pssession-between-two-machines-which-is-not-in-domain/2340/2 "2014-03-12T18:29:43Z")

</div>

Yes, it’s possible. What error are you receiving? Have you added the remote computer to the TrustedHosts list?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [March 12, 2014, 10:48pm UTC](https://forums.powershell.org/t/pssession-between-two-machines-which-is-not-in-domain/2340/3 "2014-03-12T22:48:38Z")

</div>

It’s possible, but you can’t use the default Kerberos authentication in that scenario. Off the top of my head, I don’t remember if the PSRemoting commands automatically fall through to NTLM authentication if Kerberos isn’t avaialble, or if you have to specify it yourself by using the “-Authentication Negotiate” argument when calling New-PSSession, Invoke-Command, etc.

You’ll also either have to set up an HTTPS listener, or use the TrustedHosts list (HTTPS being the more secure option, since it authenticates the remote computer before it exposes anything related to your user credentials.) There are examples of how to do both of these in the free “Secrets of PowerShell Remoting” ebook, which you can download from [https://powershell.org/ebooks/](https://powershell.org/ebooks/) .

---

<div class="post-metadata">

**Author:** ![vern\_anderson](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/vern_anderson/32/5140_2.png) [@vern\_anderson](https://forums.powershell.org/u/vern_anderson)\
**Post date:** [March 12, 2014, 11:44pm UTC](https://forums.powershell.org/t/pssession-between-two-machines-which-is-not-in-domain/2340/4 "2014-03-12T23:44:42Z")

</div>

Look for the free E-Book “A Layman’s guide to PowerShell Remoting” [Blogs · Ravikanth Chaganti](http://www.ravichaganti.com/blog/?page_id=1301) I believe page 43 or 34 I’m dyslexic.

Anyway it goes on to tell you how to use the winrm command line syntax to manually add a list of hosts that are allowed to remote. This PDF file was the most helpful to me for figuring out how to do it, and it does work. However I need to get around to figuring out how to add a CIDR noted IP range to it.

-VERN

---

<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 13, 2014, 1:09am UTC](https://forums.powershell.org/t/pssession-between-two-machines-which-is-not-in-domain/2340/5 "2014-03-13T01:09:51Z")

</div>

I’ll actually suggest the remoting book at [powershell.org/wp/ebooks](http://powershell.org/wp/ebooks) which includes a full walk through of how to set this up.

---

<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:52pm UTC](https://forums.powershell.org/t/pssession-between-two-machines-which-is-not-in-domain/2340/6 "2024-05-16T20:52:21Z")

</div>


