Forum Discussion

gzygadlo's avatar
gzygadlo
Brass Contributor
Aug 19, 2021
Solved

AzureAD Powershell 7

Wondering if any version of PowerShell 7 will work with the AzureAD or AzureADPreview modules.  When I try to connect I get an error "One or more errors occurred"   I'm trying to move my environmen...
  • pvanberlo's avatar
    Aug 19, 2021

    gzygadlo The recommended approach, until those modules are fully compatible with newer versions of PowerShell, would be to import them with the -UseWindowsPowerShell option in your PowerShell 7 session. This will load the module in the version of PowerShell included with Windows, but using implicit remoting you can use it as if it were loaded in PowerShell 7.

     

    This is described on this webpage.

Resources