Public Folder Scripts and Basic Authentication

BySEO Need This Info

Jun 10, 2022 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,


By now you need to be informed that Microsoft will change off simple authentication in Place of work 365 later this year and that will hit Trade On line seriously. It’s not a massive deal when it will come to mail shoppers or the administrator console (EAC), but automation utilizing PowerShell scripts will be impacted and I recently ran into such an challenge.

If you have an Exchange hybrid natural environment and are making use of Community Folders, (some of) your Mailboxes are in Trade On the internet, but your Community Folders are however on-premises. For this to perform appropriately, your Community Folder Mailboxes have to be synchronized utilizing Azure Advert Connect, and you need to run a PowerShell script (identified as Sync-ModernMailPublicFolders.ps1) to synchronize the mail-enabled Public Folders with Exchange On-line.

This works great, until finally Primary Authentication is turned off and an error is shown:


Or in plain textual content:

Unable to build a remote shell session to Exchange On line. The error is as follows: “Connecting to remote server unsuccessful with the pursuing mistake concept: Obtain is denied

You will not see this mistake quickly, but at some place you will discover that modifications in Community Folders are not visible in Outlook anymore.

The not suggested solution is to re-empower fundamental authentication, but you can also down load the up to date script from Microsoft that support modern day authentication as of May well 2022. You can discover the up-to-date Community Folder migration scripts on the Microsoft web site.

Notice: One more pitfall listed here is conditional obtain imposing MFA, I ran into this as perfectly at a shopper, resulting in the identical mistake message.



With email currently being 1 of the most mission-critical tools for businesses now, how do you make certain crucial enterprise communication stays up and jogging? How do you reveal to senior administration that more resources are necessary to meet growing demand from customers or that company levels are staying met?

Made by Exchange architects with immediate product enter from Exchange MVPs, ENow’s Mailscape can make your position easier by placing all the things you require into a single, concise OneLook dashboard, rather of forcing you to use fragmented and challenging applications for monitoring and reporting. Quick to deploy and intuitive to use, get started out with Mailscape in minutes instead than days.

Accessibility YOUR No cost 14-Working day Trial and incorporate all essential components for your Exchange checking and reporting to retain your messaging infrastructure up and working like a professional!


  • Consolidated dashboard look at of messaging environments health
  • Mechanically verify exterior Mail flow, OWA, ActiveSync, Outlook Any place
  • Mail stream queue checking
  • DAG configuration and failover checking
  • Microsoft Stability Patch verification
  • 200+ developed-in, customizable stories, which includes: Mailbox dimension, Mail Traffic, Quota, Storage, Distribution Lists, Public Folders, Databases size, OWA, Outlook version, permissions, SLA and cell gadget reports

Access Free 14-Day Trial


Supply backlink