Le Cloud de Christophe BOUCETTA

Voici le blog sur les communications unifiées et la collaboration Microsoft par un MVP nominé depuis 11 ans

Microsoft a rendu disponible le module Exchange Online PowerShell en version 3

Date: 20 Septembre 2022

Le module v3 contient toutes les applets de commande basées sur REST et permet l'utilisation d'applets de commande Exchange Online via des appels d'API REST. Il prend également en charge l'authentification moderne.

Lien: https://www.powershellgallery.com/packages/ExchangeOnlineManagement/3.0.0

Documentation: https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#updates-for-version-300-the-exo-v3-module

Mise a jour:

  •   General Availability of REST-backed cmdlets for Exchange Online which do not require WinRM Basic Authentication to be enabled.
  • General Availability of Certificate Based Authentication for Security and Compliance PowerShell cmdlets.
  • Support for System-Assigned and User-Assigned ManagedIdentities to connect to ExchangeOnline from Azure VMs, Azure Virtual Machine Scale Sets and Azure Functions.
  • Breaking changes
           - Get-PSSession cannot be used to get information about the sessions created as PowerShell Remoting is no longer being used. The Get-ConnectionInformation cmdlet has been introduced instead, to get information about the existing connections to ExchangeOnline. Refer https://docs.microsoft.com/en-us/powershell/module/exchange/get-connectioninformation?view=exchange-ps for more information.
           - Certain cmdlets that used to prompt for confirmation in specific scenarios will no longer have this prompt and the cmdlet will run to completion by default.
           - The format of the error returned from a failed cmdlet execution has been slightly modified. The Exception contains some additional data such as the exception type, and the FullyQualifiedErrorId does not contain the FailureCategory. The format of the error is subject to further modifications.
           -   Deprecation of the Get-OwnerlessGroupPolicy and Set-OwnerlessGroupPolicy cmdlets.

Dans le cadre d'une installation initiale du module, la commande est la suivante

Install-Module -Name ExchangeOnlineManagement

Désinstaller l'ancien module et installer la nouvelle version:

Uninstall-Module ExchangeOnlineManagement -Force
Install-Module ExchangeOnlineManagement

Si vous avez déja le module, vous pouvez mettre à niveau avec la commande:

Get-InstalledModule ExchangeOnlineManagement

Connexion à Exchange Online

Connect-ExchangeOnline

Facebook Like