Public Folder Scripts and Basic Authentication


By now you ought to be knowledgeable that Microsoft will transform off simple authentication in Workplace 365 afterwards this year and that will strike Trade On-line severely. It’s not a massive offer when it comes to mail clientele or the administrator console (EAC), but automation utilizing PowerShell scripts will be impacted and I not long ago ran into such an problem.

If you have an Exchange hybrid ecosystem and are applying General public Folders, (some of) your Mailboxes are in Exchange On the internet, but your Public Folders are nevertheless on-premises. For this to get the job done effectively, your General public Folder Mailboxes ought to be synchronized working with Azure Ad Link, and you ought to run a PowerShell script (called Sync-ModernMailPublicFolders.ps1) to synchronize the mail-enabled General public Folders with Trade On line.

This is effective good, right until Simple Authentication is turned off and an error is demonstrated:


Or in plain textual content:

Not able to generate a remote shell session to Trade On line. The error is as follows: “Connecting to distant server unsuccessful with the following error concept: Accessibility is denied

You will not notice this mistake straight away, but at some place you will discover that adjustments in Public Folders are not obvious in Outlook anymore.

The not proposed resolution is to re-permit standard authentication, but you can also down load the current script from Microsoft that support modern day authentication as of May 2022. You can find the up-to-date Public Folder migration scripts on the Microsoft site.

Be aware: Another pitfall right here is conditional entry enforcing MFA, I ran into this as properly at a buyer, ensuing in the very same error concept.



With email being 1 of the most mission-critical tools for corporations currently, how do you guarantee very important business communication stays up and operating? How do you show to senior management that supplemental methods are desired to satisfy expanding need or that service stages are being satisfied?

Made by Trade architects with direct product or service input from Trade MVPs, ENow’s Mailscape would make your position easier by placing all the things you want into a single, concise OneLook dashboard, instead of forcing you to use fragmented and difficult resources for monitoring and reporting. Uncomplicated to deploy and intuitive to use, get began with Mailscape in minutes rather than times.

Access YOUR Totally free 14-Day Trial and mix all crucial factors for your Exchange monitoring and reporting to continue to keep your messaging infrastructure up and running like a pro!


  • Consolidated dashboard see of messaging environments health
  • Immediately validate external Mail movement, OWA, ActiveSync, Outlook Anywhere
  • Mail flow queue checking
  • DAG configuration and failover checking
  • Microsoft Stability Patch verification
  • 200+ designed-in, customizable experiences, like: Mailbox dimension, Mail Site visitors, Quota, Storage, Distribution Lists, Community Folders, Databases dimensions, OWA, Outlook version, permissions, SLA and cell device reports

Access Free 14-Day Trial


Supply url