Get-Command:术语“ Get-AzStorageBlobContent”不被识别为cmdlet,函数,脚本文件或可运行程序的名称

时间:2019-02-15 05:41:55

标签: powershell azure-storage azure-powershell

来自my question about installing Azure Powershell 我能够安装Azure Powershell 5.1

但是,当我尝试运行

Get-Command Get-AzStorageBlobContent

我知道

Get-Command : The term 'Get-AzStorageBlobContent' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, 
or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Command Get-AzStorageBlobContent
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-AzStorageBlobContent:String) [Get-Command], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand

我可以看到ISE右面板中列出的命令,并且我获得了智能帮助 error message

链接135170 takes me here

Get-ExecutionPolicy

返回受限

1 个答案:

答案 0 :(得分:1)

您可以以管理员身份运行set-executionpolicy remotesigned来解决此问题。

请参阅:https://www.faqforge.com/windows/windows-powershell-running-scripts-is-disabled-on-this-system/