To start with:-
1. Open Powershell ISE with elevated right (run as administrator)
2. Set the trusted host
Set-Item WSMan:\LocalHost\Client\TrustedHosts "192.168.0.208"
#Above ip is Nano Server IP
Set-Item WSMan:\LocalHost\Client\TrustedHosts *3. Start the session
Enter-PSSession –ComputerName "192.168.0.208" -Credential ~\AdministratorEnter your credential
4. To disable the Windows firewall, enter
netsh advfirewall set allprofiles state off
To enable back,
netsh advfirewall set allprofiles state on
5. To exit the session
Exit-PSSession