Quick way to connect to Windows 10 IoT device using PowerShell

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:

$machineName =’MachineName’
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 …


Have fun!

  1. Leave a comment

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 )

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: