Hello world,

In previous post I show you how to install Nano Server. But, if you want to manage Nano Server, you need to create PowerShell remoting session to Nano Server. If your computer and Nano Server are not part of same domain (most popular scenario), you need to do two things.

At the first place you need to edit TrustedHosts list on your computer. You can add IP address of desired destination server, or add “*” as a value (not recommended). At the second, need to enable WinRM on Nano Server via Nano Server Recovery Console.

Nano Server Recovery Console WinRM

Local computer TrustedHosts file

# Adding Nano Server IP address from variable
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "$IPAddress"

# Adding all to file
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*"

You really need to configure TrustedHosts file, if you don’t want to see error message.

After adding Nano Server IP address to TrustedHosts file, you can create PowerShell remoting session to Nano Server.

# Connect to Nano Server
$IP = "Nano Server IP Address"
$Credentials = Get-Credential Administrator # You will be prompted for password
Enter-PSSession -ComputerName $IP -Credential $Credentials

Now, fun can start 😀


Leave a Reply

Your email address will not be published. Required fields are marked *