简体   繁体   English

无法安装Windows Azure Active Directory模块-Powershell

[英]Unable to Install Windows Azure Active Directory Module - Powershell

I'm facing a typical Microsoft bug whereby I am unable to install Windows Azure Active Directory Module Found here Windows Azure AD for Powershell 我遇到一个典型的Microsoft错误,无法安装Windows Azure Active Directory模块( 适用于Powershell的Windows Azure AD)

Background: 背景:
I am Running Windows 7 with Service Pack 1. 我正在运行Windows 7 Service Pack 1。
Powershell 4.0 is currently installed. 当前已安装Powershell 4.0。
Microsoft.Net Framework 3.5.1 is checked under programs and Features 在程序和功能下检查了Microsoft.Net Framework 3.5.1
Microsoft Online Services Sign-in Assistant Both Beta and non Beta versions were installed..PC rebooted and no luck with either of them. Microsoft Online Services登录助手已安装Beta版和非Beta版。.PC重新启动,但其中两个都没有运气。

在此处输入图片说明

在此处输入图片说明

适用于Windows Powershell的Windows Azure Active Directory模块。您必须在此计算机上安装Windows Powershell 2.0或更高版本

I have read many posts online and none of them appeared to have helped. 我在网上阅读了许多帖子,但似乎都没有帮助。 Does anyone know how to overcome this annoying bug. 有谁知道如何克服这个烦人的错误。

http://blogs.technet.com/b/tune_in_to_windows_intune/archive/2013/11/09/error-when-trying-to-install-windows-azure-active-directory-module-for-windows-powershell.aspx http://blogs.technet.com/b/tune_in_to_windows_intune/archive/2013/11/09/error-when-trying-to-install-windows-azure-active-directory-module-for-windows-powershell.aspx

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/aef5669a-bc46-4c7a-9cbd-d0ed781e5190/waad-wont-install-says-signin-assistant-needs-to-be-installed-but-it-already-is?forum=WindowsAzureAD http://social.msdn.microsoft.com/Forums/windowsazure/zh-CN/aef5669a-bc46-4c7a-9cbd-d0ed781e5190/waad-wont-install-says-signin-assistant-needs-to-be-installed-但它已经是论坛?WindowsAzureAD

I finally found a solution to this from Erik who posted on this site. 我终于从发布在此站点上的Erik找到了解决方案。
http://blogs.technet.com/b/tune_in_to_windows_intune/archive/2013/11/09/error-when-trying-to-install-windows-azure-active-directory-module-for-windows-powershell.aspx http://blogs.technet.com/b/tune_in_to_windows_intune/archive/2013/11/09/error-when-trying-to-install-windows-azure-active-directory-module-for-windows-powershell.aspx

Run the command prompt as an administrator by holding shift + right click on the command prompt icon, then Run as administrator. 按住shift键并右键单击命令提示符图标,然后以管理员身份运行,以管理员身份运行命令提示符。

以管理员身份运行命令提示符

At the command prompt Change directories to where you AdministrationConfig-En.msi is installed. 在命令提示符下,将目录更改为您安装AdministrationConfig-En.msi的位置。

In the command prompt type: 在命令提示符下,键入:
msiexec /i AdministrationConfig-EN.msi msiexec / i AdministrationConfig-ZH.msi
It will now install without the powershell warning. 现在将在没有Powershell警告的情况下安装它。

Erik's commentary is that the powershell settings are only readable when privileges are elevated. Erik的评论是,仅当特权提升时,powershell设置才可读。

The beta version of the sign-in assistant which also needs to be installed prior to the Administrationconfig didn't help me but have helped others. 登录助手的beta版本(也需要在Administrationconfig之前安装)对我没有帮助,但对其他人有所帮助。

It was definitely a long and painful process. 这绝对是一个漫长而痛苦的过程。

There is a new beta version for the sign in assistant. 登录助手有一个新的Beta版本。 Look up the new beta version and it will work. 查找新的Beta版本,它将起作用。 Just went through this about a week ago. 大约一周前刚刚经历了这一过程。

A String Value is "missing" in the registry. 注册表中的字符串值“丢失”。 There are two potential locations in the Windows registry where PowerShell versions are stored, depending on what version or versions you have installed or possibly installed in the past. Windows注册表中有两个潜在的位置存储PowerShell版本,这取决于您以前安装的版本或以前可能安装的版本。

Older version location, including Version 1.0 and 2.0: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PowerShell\\1 较旧的版本位置,包括版本1.0和2.0:HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ PowerShell \\ 1

Later versions location, including 5.0 and others: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PowerShell\\3 更高版本的位置,包括5.0及其他:HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ PowerShell \\ 3

Each location has a sub-key called PowerShellEngine that contains a string value called PowerShellVersion. 每个位置都有一个名为PowerShellEngine的子项,其中包含一个名为PowerShellVersion的字符串值。

If this value is missing in the first key mentioned above, you will receive the installation error because the installer does not look the in the second key mentioned above for the PS version. 如果上面提到的第一个密钥中缺少此值,您将收到安装错误,因为安装程序没有在上面提到的PS版本的第二个密钥中看到。

If the value is missing, simply add it with the data of 2.0 如果缺少该值,只需将其与数据2.0相加即可

Now installation of the AADRM will work assuming you have PS 2.0 or later installed and assuming you are using the installer version 2.50 or later of the AADRM, which does not require the sign-in assistant to be installed. 现在,假设您已安装PS 2.0或更高版本,并且使用的安装程序版本是2.50或更高版本的AADRM(不需要安装登录助手),则将可以安装AADRM。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM