Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么';";设置项目";在Windows7 PowerShell上工作?_Windows_Powershell_Raspberry Pi - Fatal编程技术网

为什么';";设置项目";在Windows7 PowerShell上工作?

为什么';";设置项目";在Windows7 PowerShell上工作?,windows,powershell,raspberry-pi,Windows,Powershell,Raspberry Pi,我正在尝试在我的Raspberry Pi 2上安装Windows 10 IoT。PowerShell文档告诉我要放入以下内容: 设置项目WSMan:\localhost\Client\TrustedHosts-Value 但是,当我将其放入Windows 7 PowerShell时,结果是: At line:1 char:54 + Set-Item WSMan:\localhost\Client\TrustedHosts -Value <minwinpc> +

我正在尝试在我的Raspberry Pi 2上安装Windows 10 IoT。PowerShell文档告诉我要放入以下内容:

设置项目WSMan:\localhost\Client\TrustedHosts-Value

但是,当我将其放入Windows 7 PowerShell时,结果是:

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
第1行字符:54
+设置项目WSMan:\localhost\Client\TrustedHosts-Value
+                                                      ~

“您需要在设备名称(minwinpc)周围使用引号,而不是“<>”


我相信他们的意思是让
成为计算机名称的占位符。是的。事实上,迈克,这就是它在我的Pi上显示的确切名称。可能没有尖括号,这似乎就是。对于powershell命令,请参阅,好的,我会试试。谢谢
Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'minwinpc'