Every time I needed to connect to my Raspberry Pi 2 device I had to start searching for the PowerShell commands, open PS, edit commands, loose a few minutes preparing stuff.
So I have created one file that will contain all the commands I need to get connected to device and start running “IotStartup list” commands.
The content of the files looks like this:
net start WinRM
Set-Item WSMan:\localhost\Client\TrustedHosts $machineName
Enter-PSSession -ComputerName $machineName -Credential $machineName\Administrator
One more thing: Make sure you run PowerShell in Admin mode!
But something tells me, you already know that.
I like images more …