Public Folder Scripts and Basic Authentication

Jaime E. Love


By now you need to be informed that Microsoft will switch off primary authentication in Office 365 later this 12 months and that will strike Exchange Online seriously. It is not a large deal when it will come to mail purchasers or the administrator console (EAC), but automation utilizing PowerShell scripts will be impacted and I lately ran into such an concern.

If you have an Exchange hybrid atmosphere and are using General public Folders, (some of) your Mailboxes are in Trade On-line, but your General public Folders are however on-premises. For this to get the job done adequately, your General public Folder Mailboxes ought to be synchronized employing Azure Advert Hook up, and you ought to operate a PowerShell script (referred to as Sync-ModernMailPublicFolders.ps1) to synchronize the mail-enabled Public Folders with Exchange Online.

This performs fantastic, right until Primary Authentication is turned off and an error is demonstrated:


Or in plain textual content:

Not able to build a distant shell session to Trade On the internet. The error is as follows: “Connecting to distant server unsuccessful with the next mistake message: Obtain is denied

You won’t observe this mistake right away, but at some level you will discover that alterations in Public Folders are not visible in Outlook any more.

The not recommended solution is to re-allow simple authentication, but you can also down load the up to date script from Microsoft that help present day authentication as of Could 2022. You can uncover the up to date Public Folder migration scripts on the Microsoft web-site.

Notice: An additional pitfall below is conditional obtain enforcing MFA, I ran into this as well at a client, resulting in the exact same error concept.



With e-mail getting a single of the most mission-critical tools for corporations these days, how do you ensure vital business communication stays up and operating? How do you exhibit to senior administration that further means are wanted to meet growing demand from customers or that support stages are remaining met?

Designed by Exchange architects with immediate product input from Exchange MVPs, ENow’s Mailscape would make your job a lot easier by putting all the things you require into a solitary, concise OneLook dashboard, alternatively of forcing you to use fragmented and intricate tools for checking and reporting. Uncomplicated to deploy and intuitive to use, get commenced with Mailscape in minutes alternatively than days.

Entry YOUR No cost 14-Working day Trial and blend all crucial components for your Exchange checking and reporting to continue to keep your messaging infrastructure up and running like a pro!


  • Consolidated dashboard check out of messaging environments health
  • Automatically confirm exterior Mail flow, OWA, ActiveSync, Outlook Any where
  • Mail stream queue checking
  • DAG configuration and failover checking
  • Microsoft Protection Patch verification
  • 200+ created-in, customizable studies, together with: Mailbox measurement, Mail Targeted traffic, Quota, Storage, Distribution Lists, Community Folders, Database size, OWA, Outlook version, permissions, SLA and mobile gadget reports

Access Free 14-Day Trial


Supply hyperlink

Next Post

Ohio Federation of Business and Professional Women, Forget Me Not Garden Club

[ad_1] Karen McCready, 2021-22 BPW OHIO president, poses with Jim Justice, Ashland County commissioner, and Matt Miller, Ashland mayor. Ohio Federation of Business and Professional Women The Ohio Federation of Business and Professional Women’s Clubs held the 102nd annual BPW/OHIO Conference, May 20-22, 2022, at Mohican Lodge and Conference Center. State […]