{"id":702,"date":"2017-07-25T20:17:58","date_gmt":"2017-07-25T19:17:58","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=635"},"modified":"2017-07-25T20:17:58","modified_gmt":"2017-07-25T19:17:58","slug":"connecting-via-powershell","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/windows-10-iot-core\/windows-iot-general\/powershell\/connecting-via-powershell","title":{"rendered":"Connecting Via PowerShell"},"content":{"rendered":"<p>\n\tSome functions require you to connect via PowerShell, the following is based on the Micrsoft guide here:&nbsp;<a href=\"https:\/\/developer.microsoft.com\/en-us\/windows\/iot\/docs\/powershell\">https:\/\/developer.microsoft.com\/en-us\/windows\/iot\/docs\/powershell<\/a>\n<\/p>\n<h4>\n\tSetup for PowerShell Connection<br \/>\n<\/h4>\n<p>\n\tOn your desktop PC search for &quot;Windows PowerShell&quot; &gt; rigth click it and select Run As Administrator.\n<\/p>\n<p>\n\tYou should now see the PowerShell console.\n<\/p>\n<p>\n\tStart the WinRM service on your desktop to enable remote connections:\n<\/p>\n<pre>\n<code>\nnet start WinRM\n<\/code><\/pre>\n<p>\n\tEnable the local account token filter policy:\n<\/p>\n<pre>\n<code>\nPS&gt; Set-ItemProperty &ndash;Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System &ndash;Name LocalAccountTokenFilterPolicy &ndash;Value 1 -Type DWord\n<\/code><\/pre>\n<p>\n\tThen enter:\n<\/p>\n<pre>\n<code>\nPS C:\\Windows\\system32&gt; Set-Item WSMan:\\localhost\\Client\\TrustedHosts -Value &lt;Win IoT device name or IP Address&gt;\n<\/code><\/pre>\n<h5>\n\tTo start a session with your Windows IoT Core device:<br \/>\n<\/h5>\n<pre>\n<code>\nEnter-PSSession -ComputerName &lt;Win IoT device name or IP Address&gt; -Credential localhost\\Administrator\n<\/code><\/pre>\n<p>\n\tEnter the Windows IoT Administorator password when prompted then after a delay if you have connected sucessfully the prompt will return starting with the&nbsp;IoT device name or IP address.\n<\/p>\n<h4>\n\tExit PowerShell session<br \/>\n<\/h4>\n<pre>\n<code>\nExit-PSSession\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some functions require you to connect via PowerShell, the following is based on the Micrsoft guide here:&nbsp;https:\/\/developer.microsoft.com\/en-us\/windows\/iot\/docs\/powershell Setup for PowerShell Connection On your desktop PC search for &quot;Windows PowerShell&quot; &gt; rigth click it and select Run As Administrator. You should now see the PowerShell console. Start the WinRM service on your desktop to enable remote [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[],"class_list":["post-702","post","type-post","status-publish","format-standard","hentry","category-powershell"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=702"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/702\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}