Powershell:“无法更新帮助”

Powershell:“无法更新帮助”

以管理员身份运行 PowerShell,Update-Help失败并显示一长串模块。所以我猜无法访问帮助服务器。我如何知道哪个服务器无法访问?

PS C:\WINDOWS\system32> Update-Help
Update-Help : Failed to update Help for the module(s) 'ActiveDirectory, AppBackgroundTask, AppLocker, AppvClient, Appx, AssignedAccess, BestPractices, BitLocker, 
BitsTransfer, BranchCache, CimCmdlets, ClusterAwareUpdating, Defender, DirectAccessClientComponents, Dism, DnsClient, DnsServer, FailoverClusters, GroupPolicy, 
HgsClient, International, iSCSI, IscsiTarget, ISE, Microsoft.PowerShell.Archive, Microsoft.PowerShell.Core, Microsoft.PowerShell.Diagnostics, 
Microsoft.PowerShell.Host, Microsoft.PowerShell.LocalAccounts, Microsoft.PowerShell.Management, Microsoft.PowerShell.ODataUtils, 
Microsoft.PowerShell.Operation.Validation, Microsoft.PowerShell.Security, Microsoft.PowerShell.Utility, Microsoft.WSMan.Management, MMAgent, MsDtc, MSMQ, NetAdapter, 
NetEventPacketCapture, NetLbfo, NetLldpAgent, NetNat, NetQos, NetSecurity, NetSwitchTeam, NetTCPIP, NetworkController, NetworkControllerDiagnostics, 
PackageManagement, PnpDevice, PowerShellGet, PrintManagement, ProcessMitigations, Provisioning, PSDesiredStateConfiguration, PSReadline, PSScheduledJob, PSWorkflow, 
PSWorkflowUtility, RemoteAccess, RemoteDesktop, ScheduledTasks, SecureBoot, ShieldedVMDataFile, ShieldedVMTemplate, StartLayout, Storage, StorageQoS, StorageReplica, 
TLS, TroubleshootingPack, TrustedPlatformModule, UEV, UpdateServices, WebAdministration, WindowsDeveloperLicense, WindowsErrorReporting, WindowsSearch, 
WindowsUpdate, WindowsUpdateProvider' with UI culture(s) {en-US} : Unable to connect to Help content. The server on which Help content is stored might not be 
available. Verify that the server is available, or wait until the server is back online, and then try the command again.
At line:1 char:1
+ Update-Help
+ ~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
    + FullyQualifiedErrorId : UnableToConnect,Microsoft.PowerShell.Commands.UpdateHelpCommand


PS C:\WINDOWS\system32> $PSVersionTable

Name                           Value                                                                                                                                  
----                           -----                                                                                                                                  
PSVersion                      5.1.16299.666                                                                                                                          
PSEdition                      Desktop                                                                                                                                
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                
BuildVersion                   10.0.16299.666                                                                                                                         
CLRVersion                     4.0.30319.42000                                                                                                                        
WSManStackVersion              3.0                                                                                                                                    
PSRemotingProtocolVersion      2.3                                                                                                                                    
SerializationVersion           1.1.0.1                                                                                                                                

PS C:\WINDOWS\system32> ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole( [Security.Principal.WindowsBuiltInRole]"Administrator")

True

遵循了以下一些建议,但问题仍未解决:https://stackoverflow.com/questions/39834452/powershell-fails-with-update

编辑:关于“重复问题”,请参阅该问题和答案。它与我的问题不符,因为我问的是,如何知道无法使用更新帮助的网站。另一个问题是询问特定模块,他们的答案正确地表明,也许这些模块没有帮助。就我而言,很明显大多数模块都有帮助,我只是无法访问它们,并询问如何知道帮助文件存在于哪些网站上。

相关内容