Author Posts

March 12, 2014 at 10:33 pm

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.

March 12, 2014 at 11:59 pm

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

March 13, 2014 at 4:18 am

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/ .

March 13, 2014 at 5:14 am

Look for the free E-Book "A Layman's guide to PowerShell Remoting" 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

March 13, 2014 at 6:39 am

I'll actually suggest the remoting book at powershell.org/wp/ebooks which includes a full walk through of how to set this up.