Forum Discussion

Matthew Carter's avatar
Matthew Carter
Iron Contributor
Jan 19, 2023

Windows 11, PowerShell 5.1.22000.1335 works yet 7.3.1 does not for Connect-AzureAD

I am in Windows 11 and I use PowerShell 5 and would like to mainly use 7 yet when I go to Connect-AzureAD it doesn't like it.

I have a screenshot showing both as admin and NON admin and I can install yet can't Connect.

I opened PS 5 and PS 7 as NON admin and received the same errors.

 

  • The AzureAD module does not support PS7/Core installs. You can however run it in compatibility mode:

    Import-Module AzureAD -UseWindowsPowerShell

    Better use the Graph SDK for PowerShell, as the AzureAD module is going to be deprecated soon anyway.

Resources