maester365 / maester

The core repository for the Maester module with helper cmdlets that will be called from the Pester tests.
https://maester.dev
MIT License
334 stars 80 forks source link

Device Code Auth not available for Exchange Online on Windows PowerShell #346

Closed f-bader closed 3 months ago

f-bader commented 3 months ago
Connect-Maester -Service ExchangeOnline

fails on Windows PowerShell, as the parameter Device is not available

image

image

In PowerShell 7.0.3 or later using version 2.0.4 or later of the module, this example connects to Exchange Online PowerShell in interactive scripting scenarios on computers that don't have web browsers.

The command returns a URL and unique code that's tied to the session. You need to open the URL in a browser on any computer, and then enter the unique code. After you complete the login in the web browser, the session in the Powershell 7 window is authenticated via the regular Microsoft Entra authentication flow, and the Exchange Online cmdlets are imported after few seconds. Source

f-bader commented 3 months ago

Solved in #347