Connecting to Remote Hosts in a Non-Domain Environment (Trusted Hosts)

To enable remote powershelling with servers not in the same domain as the client machine you will need to perform the following steps:

On the server PC type:

Enable-PSRemoting 

On the client PC type:

Server IP 192.168.3.100

set-item wsman:\localhost\client\trustedhosts -value 192.168.3.100
$cred = get-credential 192.168.3.100\administrator
enter-pssession -computername 192.168.3.100 -credential $cred

Leave a comment