【问题标题】:Windows Azure Powershell - installation errorWindows Azure Powershell - 安装错误
【发布时间】:2016-11-26 22:35:52
【问题描述】:

我刚刚按照这篇文章安装了 Windows Azure PowerShell https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/

我在打开 PowerShell 时看到以下消息,你知道如何解决这个问题吗:

cd : Cannot find path 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\' because it does not
exist.
At line:1 char:1
+ cd 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\'; Impo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...werShell\Azure\:String) [Set-Location], ItemNotFoundE
   xception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

Import-Module : The specified module '.\Azure.psd1' was not loaded because no valid module file was found in any
module directory.
At line:1 char:77
+ cd 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\'; Impo ...
+                                                                             ~~~~
    + CategoryInfo          : ResourceUnavailable: (.\Azure.psd1:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Get-Content : Cannot find path 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Azure\welcome.txt'
because it does not exist.
At line:1 char:105
+ ...  .\Azure.psd1; Get-Content .\welcome.txt; $VerbosePreference="Continue"; cd 'C:\ ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\ProgramData\...ure\welcome.txt:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

PS C:\>

我使用的是 Windows Server 2008 R2 Enterprise SP1。 我通过 WebPI 安装了 Windows Azure Powershell。

你知道为什么安装过程中没有创建文件夹“C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\”吗?

【问题讨论】:

  • 您的操作系统、版本和服务包版本是什么?
  • 您引用的文档中还有 2 个安装 Azure PowerShell 的选项。您是从 WebPI 安装 Azure PowerShell 还是从 PowerShell 库安装 Azure PowerShell?
  • 我使用的是 Windows Server 2008 R2 Enterprise SP1。我通过 WebPI 安装了 Windows Azure Powershell

标签: windows powershell azure azure-powershell


【解决方案1】:

我遇到了同样的问题,你必须以管理员身份运行。

第二次点击powershell,然后点击以管理员身份运行。

【讨论】:

  • 我以管理员身份运行,但仍然看到相同的错误。我想知道为什么在安装过程中没有创建文件夹“C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\”。
猜你喜欢
  • 2018-09-15
  • 1970-01-01
  • 2020-07-31
  • 1970-01-01
  • 2014-03-23
  • 1970-01-01
  • 1970-01-01
  • 2022-01-24
  • 1970-01-01
相关资源
最近更新 更多