繁体   English   中英

为什么“设置项”在Windows 7 PowerShell上不起作用?

[英]Why doesn't “Set-Item” work on Windows 7 PowerShell?

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

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

然而,当我把它放到我的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

我该如何解决?

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

Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'minwinpc'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM