Error when you try to install Azure Active Directory module for Windows PowerShell: You must have Windows PowerShell 2.0 or greater installed
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
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.
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
- Log on as a local admin. (Just logging on as a domain admin may not work.)
- Install Azure Active Directory module for PowerShell.
- Log on as a local admin. (Just logging on as a domain admin may not work.)
- In Control Panel, select Programs and Features, or select Uninstall a program under Programs.
- Select Turn Window features on or off.
- In the Windows Feature window, make sure that the Windows PowerShell 2.0 checkbox is selected, and then select OK.
- Install Azure Active Directory module for PowerShell.
If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure feedback community.