Posts

Enable PSRemoting Hands on: Configuration & troubleshooting

Image
I have struggled to enable remote connection via PowerShell from really long time and it is frustrating to see you do everything right and you get error like or So, finally I set myself to just read first and then proceed step by step. Firstly, you must do is read Microsoft about remote requirements but do not implement it as is because that would lead you to search issues like why New-PSSession does not connect etc. and you'd find that New-PSSession is to create remote session, however without any server name it usually connects to localhost . Now implement following steps: Search & Run PowerShell as Administrator (aka elevated window) Find your system (for now, let's stick to remote connection to your own system: aka loopback) IP address by typing   ipconfig Check your TrustedHosts list Get-Item WSMan:\localhost\Client\TrustedHosts Set your TrustedHosts list Set-Item WSMan:\localhost\Client\TrustedHosts -Value '<your IP address>' Then when you run Step ...