Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hi oleg kantsler,
Yes, Microsoft has announced that starting June 1, 2023, we will start blocking RPS connections to Exchange Online and will block RPS for all tenants by July 1, 2023. After July 1, customers will not be able to use RPS when connecting to Exchange Online and will have to use the v3 module with REST cmdlets instead.
Since we are not the expert about PowerShell scripts, I suggest you post your problem in Microsoft Exchange Online Management - Microsoft Q&A for more professional assistance. The reason why we recommend posting there is that you will get more qualified pool of respondents, and other partners who read the forums regularly can share their knowledge with you.
For your reference: Announcing Deprecation of Remote PowerShell (RPS) Protocol in Exchange Online PowerShell - Microsoft Community Hub
Thanks for your understanding.
Best Regards,
Tammy | Microsoft Community Moderator.