Forum Discussion
bfry24
Nov 12, 2019Copper Contributor
How to Recreate Public Folder Primary Hierarchy
In our Exchange Admin Center, there was a Public Folder Mailbox, someone created that was more specific to a department than to the company. It was set as the Primary Hierarchy. I was able to succe...
- Nov 13, 2019
Hello bfry24 ,
In the meantime I got a response from Office 365 support (this time *very* fast and very competent).
After some combined investigation, my problem is solved. Perhaps it works for you too.
The key element was the following Powershell command in the Office 365 session:
Get-Mailbox -PublicFolder | Update-PublicFolderMailbox -InvokeSynchronizer -SuppressStatus
Shortly after that command, my public folder mailbox turned from "Secondary Hierarchy" into "Primary Hierarchy". After that, the public folder structure became visible to the users.
Regards
Daniel
DanHuber
Nov 13, 2019Iron Contributor
Hello bfry24 ,
In the meantime I got a response from Office 365 support (this time *very* fast and very competent).
After some combined investigation, my problem is solved. Perhaps it works for you too.
The key element was the following Powershell command in the Office 365 session:
Get-Mailbox -PublicFolder | Update-PublicFolderMailbox -InvokeSynchronizer -SuppressStatus
Shortly after that command, my public folder mailbox turned from "Secondary Hierarchy" into "Primary Hierarchy". After that, the public folder structure became visible to the users.
Regards
Daniel
- bfry24Nov 13, 2019Copper Contributor
DanHuber Did you change anything in the script? Does not work for me. Can I ask what you named your public folder mailbox?
- DanHuberNov 13, 2019Iron Contributor
The option -SuppressStatus disables any output. If you leave it away, it would use your PowerShell connection and send a status update every few seconds.
It took a couple of minutes and Secondary Hierarchy turned to Primary Hierarchy in my case. Perhaps it takes a bit longer for you?
Here are some cmdlets I was using. As you see, my public folder mailbox is named "SGAIM"
# create public folder mailbox (in my case, I deleted all other before this) New-Mailbox -PublicFolder -Name SGAIM # created a test public folder. I created the real ones later in Outlook, # since here I cannot set the type of the folder.. I want contact folders... New-PublicFolder -Name "Global Contacts" # this checks if the foolder was created Get-PublicFolder “\” -Recurse # some more information Get-PublicFolder -Recurse | Get-PublicFolderClientPermission | Select Identity, User, AccessRights # this checks if the default public folder for each user is set correctly Get-Mailbox | ft Name,DefaultPublicFolderMailbox # otherwise I can set it here Get-Mailbox -resultsize unlimited | Set-Mailbox -defaultpublicfoldermailbox "SGAIM" # this one is not for the faint of heart.. # but it told me that something was wrong with the synchronisation. # hence the -InvokeSynchronizer option I used earlier Get-PublicFolderMailboxDiagnostics -Identity SGAIM # just for test, I add another public folder mailbox New-Mailbox -PublicFolder -Name TEST2 # I *think* that the following tells me something about Primary vs. # Secondary Hierarchy, but I'm not 100% sure. # At least the output is TRUE for SGAIM and FALSE for TEST2 Get-Mailbox -PublicFolder | fl Name,IsRootPublicFolderMailbox