试试这个命令Import-Module PowerShellGet
请参考下面的链接:
Cannot install module from PowerShell Gallery
https://social.technet.microsoft.com/Forums/en-US/bfe36147-ace6-4242-bbbb-397031879026/cannot-install-module-from-powershell-gallery?forum=winserverpowershell
Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.