1

I am trying to install Windows 10 IoT on my Raspberry Pi 2. The PowerShell documentation tells me to put in this:

Set-Item WSMan:\localhost\Client\TrustedHosts -Value <minwinpc>

However, when I put it into my Windows 7 PowerShell, this comes out:

At line:1 char:54
+ Set-Item WSMan:\localhost\Client\TrustedHosts -Value <minwinpc>
+                                                      ~
The '<' operator is reserved for future use.
+ CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported

How do I fix this?

Essem
  • 311
  • 2
  • 11
  • 1
    I'm sure they meant for `` to be a place holder for the name of the computer. like it is [here](https://www.hackster.io/windowsiot/powershell-to-connect-to-a-machine-running-windows-10). – Mike Zboray Jun 19 '15 at 04:24
  • Actually, Mike, that's the exact name that it says on my Pi. – Essem Jun 19 '15 at 23:05
  • Probably without the without the angle brackets, that seems to be the [default](http://www.hanselman.com/blog/SettingUpWindows10ForIoTOnYourRaspberryPi2.aspx). – Mike Zboray Jun 19 '15 at 23:36
  • For the powershell command, see http://stackoverflow.com/questions/21548566/how-to-add-more-than-one-machine-to-the-trusted-hosts-list-using-winrm/31378248#31378248 – hdev Aug 12 '15 at 13:35

1 Answers1

2

You need to use quotes rather than < > around the name of the device (minwinpc)

Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'minwinpc'
Mike Shepard
  • 17,466
  • 6
  • 51
  • 69