大网数据广告活动
域与目录服务

Unable to install Azure Active Directory module for Windows PowerShell

· 52CE 我爱测

Describes an issue in which you can't install Azure Active Directory module for Windows PowerShell. Provides a resolution.

Summary

This article describes an issue in which you can't install Azure Active Directory module for Windows PowerShell. It provides a resolution.

Original product version:   Microsoft Entra ID, Office 365 User and Domain Management, Office 365 Identity Management
Original KB number:   2913017

Symptoms

When you try to install Azure Active Directory module for Windows PowerShell, you receive the following error message:

In order to install Windows Azure Active Directory module for PowerShell, you must have Windows PowerShell 2.0 or greater installed on this computer.

Resolution

To resolve this issue, try one of the following methods. If one doesn't work for you, try another one.

Method 1: Install Azure Active Directory module for Windows PowerShell when you log on as local admin

  1. Log on as a local admin. (Just logging on as a domain admin may not work.)
  2. Install Azure Active Directory module for PowerShell.

Method 2: Make sure that Windows PowerShell 2.0 is enabled

  1. Log on as a local admin. (Just logging on as a domain admin may not work.)
  2. In Control Panel, select Programs and Features, or select Uninstall a program under Programs.
  3. Select Turn Window features on or off.
  4. In the Windows Feature window, make sure that the Windows PowerShell 2.0 checkbox is selected, and then select OK.
  5. Install Azure Active Directory module for PowerShell.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 05/22/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。