Powershell Update-Help : 无法更新带有 UI 区域性 {zh-CN} 的模块

PS C:\windows\system32> Update-Help

Update-Help : 无法更新带有 UI 区域性 {zh-CN} 的模块“ISE, Microsoft.Powershell.Management, Microsoft.PowerShell.Utility, ActiveDirectory, ADCSAdminis

tration, ADCSDeployment, ADDSDeployment, ADFS, ADRMS, ADRMSAdmin, AppLocker, Appx, BestPractices, BranchCache, CimCmdlets, DFSN, DirectA

ccessClientComponents, Dism, DnsClient, GroupPolicy, International, iSCSI, IscsiTarget, Kds, Microsoft.PowerShell.Diagnostics, Microsoft

.PowerShell.Host, Microsoft.PowerShell.Security, Microsoft.WSMan.Management, MMAgent, MsDtc, NetAdapter, NetConnection, NetEventPacketCa

pture, NetLbfo, NetNat, NetQos, NetSecurity, NetSwitchTeam, NetTCPIP, NetworkConnectivityStatus, NetworkTransition, NFS, PcsvDevice, PKI

, PrintManagement, PSDesiredStateConfiguration, PSScheduledJob, PSWorkflow, PSWorkflowUtility, RemoteDesktop, ScheduledTasks, SecureBoot

, ServerCore, ServerManager, ServerManagerTasks, SmbShare, SmbWitness, SoftwareInventoryLogging, StartScreen, Storage, TLS, Troubleshoot

ingPack, TrustedPlatformModule, UserAccessLogging, ***Client, Wdac, WebAdministration, Whea, WindowsDeveloperLicense, WindowsErrorReport

ing, WindowsSearch, Microsoft.PowerShell.Core”帮助: 无法连接到帮助内容。存储帮助内容的服务器可能不可用。请确认该服务器可用,或等到该服务器重新联机,然后重试该命令。

所在位置 行:1 字符: 1

+ Update-Help

+ ~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Update-Help],Exception

    + FullyQualifiedErrorId : UnableToConnect,Microsoft.PowerShell.Commands.UpdateHelpCommand

上面的问题的原因是当前操作系统的语言集为中文,如果语言为英文,则没有上面的问题。这是因为PowerShell 某些命令的在线文档地址错误,用以下命令行忽略即可:

Update-Help -ErrorAction SilentlyContinue


Powershell Update-Help : 无法更新带有 UI 区域性 {zh-CN} 的模块

上一篇:风云再起,APT28或将搅局乌克兰大选


下一篇:一个命令,删除电脑上顽固的文件和文件夹|干货