Archive for category IoT (Internet Of Things)

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 …

iotps

Have fun!

Advertisements

Leave a comment