来自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
Get-ExecutionPolicy
返回受限
答案 0 :(得分:1)
您可以以管理员身份运行set-executionpolicy remotesigned
来解决此问题。
请参阅:https://www.faqforge.com/windows/windows-powershell-running-scripts-is-disabled-on-this-system/