Skip to content

Instantly share code, notes, and snippets.

@Injac
Created September 27, 2015 21:33
Show Gist options
  • Save Injac/4ea8c3a746e01589c841 to your computer and use it in GitHub Desktop.
Save Injac/4ea8c3a746e01589c841 to your computer and use it in GitHub Desktop.
Script to connect to your RPI2, running Windows 10 IoT Core using PowerShell
#Please replace the the [REPLACE WITH YOUR PI'S IP ADDRESS] entries (including the square brackets) with your RPI2's IP Address
#Open powershell as Administrator and execute the file (save it as yourfilename.ps1)
net start WinRM
Set-Item WSMan:\localhost\Client\TrustedHosts -Value [REPLACE WITH YOUR PI'S IP ADDRESS]
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "[REPLACE WITH YOUR PI'S IP ADDRESS]"
Enter-PSSession -ComputerName [REPLACE WITH YOUR PI'S IP ADDRESS] -Credential [REPLACE WITH YOUR PI'S IP ADDRESS]\Administrator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment