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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s