![](/img/trans.png)
[英]How to migrate registry entries with PowerShell with Get-Item : Set-Item and ExportTo-CliXml
[英]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.