请问powershell执行update-help更新帮助库的时候出现了问题,如何解决


PowerShell交流中心分类: Questions请问powershell执行update-help更新帮助库的时候出现了问题,如何解决
0
geek-linzh asked 6 年 ago

update-help : 无法更新带有 UI 区域性 {zh-CN} 的模块“Microsoft.PowerShell.Diagnostics”帮助: 找不到帮助内容。请确保服务
器可用,并在 HelpInfo XML 中正确定义了帮助内容位置。
所在位置 行:1 字符: 1
+ update-help
+ ~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : HelpContentNotFound,Microsoft.PowerShell.Commands.UpdateHelpCommand
update-help : 无法更新带有 UI 区域性 {en-US} 的模块“Microsoft.WSMan.Management, Microsoft.PowerShell.Core”帮助: Acces
s to the path ‘C:\windows\System32\WindowsPowerShell\v1.0\en-US\about_WS-Management_Cmdlets.help.txt’ is denied.
所在位置 行:1 字符: 1
+ update-help
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Update-Help],Exception
+ FullyQualifiedErrorId : UnknownErrorId,Microsoft.PowerShell.Commands.UpdateHelpCommand

1 Answers
6
Best Answer
Mooser Lee 管理员 answered 6 年 ago

PowerShell 某些命令的在线文档地址错误,忽略即可。

Update-Help -ErrorAction SilentlyContinue
geek-linzh replied 6 年 ago

嗯嗯,好的。多谢你