Run Powershell as Admin
Get-ExecutionPolicy(Change to RemoteSigned if anything else)
Set-ExecutionPolicy RemoteSigned
$credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection(then enter the credentials of the admin user)
Import-PSSession $Session
Get-PublicFolder “” –Recurse | Add-PublicFolderClientPermission -User Anonymous -AccessRights “CreateItems"