Security & Compliance PowerShell (Connect-IPPSSession) bald über REST API

Für PowerShell Tätigkeiten im Security & Compliance Center ist die Verbindung über Connect-IPPSSession erforderlich. Connect-IPPSSession ist Teil des Exchange Online PowerShell Moduls.

Heute nutzt Connect-IPPSSession das alte Remote PowerShell (RPS) Protokoll. RPS wurde von Microsoft abgekündigt, mit Ausnahme für Security & Compliance PowerShell (Connect-IPPSSession). Ab 15. Juli 2023 endet die Zeit für Connect-IPPSSession über RPS. Microsoft stellt auf REST API um.

Starting July 15, 2023, we will start deprecating the legacy RPS protocol in the Security and Compliance PowerShell module. RPS is enabled by default for Security and Compliance cmdlets. As part of our modernization efforts, the Security and Compliance admin experience is moving to REST-based cmdlets.

Laut Microsoft ändert sich für Organisationen durch die Umstellung nichts. Scripts mit Connect-IPPSSession können vorab getestet werden.
Für den Test ist zumindest das PowerShell Modul Exchange Online Management 3.2.0-Preview3 erforderlich. Vor der Installation sollten bestehende Exchange Online Module deinstalliert werden.

PowerShell
# With PowerShell 7
Uninstall-Module ExchangeOnlineManagement -AllVersions
Install-Module ExchangeOnlineManagement -AllowPrerelease
Get-Module ExchangeOnlineManagement -ListAvailable

PowerShell

Danach gibt es bei Connect-IPPSSession den Parameter UseRPSSession. Heute ist es ein optionaler Parameter für Tests. Ab Juli wird die Verbindung immer über die REST API erfolgen.

UseRPSSession
The UseRPSSession switch allows you to connect to Security & Compliance PowerShell using REST API mode.
If you don’t use this switch, you connect in traditional remote PowerShell access mode, and Basic authentication in WinRM is required on your local computer. 

PowerShell
Connect-ExchangeOnline
Connect-IPPSSession -UseRPSSession:$false
Get-Label

PowerShell

Am Beispiel ist erkennbar, laut der Ankündigung sind manche Commands im Moment noch nicht über die REST API unterstützt. Zwischen Juni und Juli sollten alle unterstützt sein.

Share
Avatar photo

Tobias Asböck

Tobias is a Senior System Engineer with more than 10 years of professional experience with Microsoft 365 products such as SharePoint Online, SharePoint Premium, OneDrive for Business, Teams Collaboration, Entra ID, Information Protection, Universal Print, and Microsoft 365 Licensing. He also has 15+ years of experience planning, administering, and operating SharePoint Server environments. Tobias is a PowerShell Scripter with certifications for Microsoft 365 products. In his spare time, Tobias is busy with updates in the Microsoft 365 world or on the road with his road bike and other sports activities. If you have additional questions, please contact me via LinkedIn or [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *