Showing posts with label Exchange 2010. Show all posts
Showing posts with label Exchange 2010. Show all posts

Monday, 18 June 2018

Public Folders not accessable on Outlook 2016

After a mailbox is moved from Exchange 2010 to Exchange 2013 or 2016 and the client is Outlook 2016 the Public Folder list on Exchange 2010 is not accessible. It seems to be fine for Outlook 2013 clients.

According to Microsoft documentation you need to take extra steps to proxy the Public Folders to Exchange 2016 mailboxes.

https://technet.microsoft.com/en-us/library/dn690134(v=exchg.150).aspx

https://support.microsoft.com/en-us/help/3177600/outlook-can-t-access-public-folders-hosted-on-legacy-exchange-servers

In have simplified these steps, this is based on a single Exchange 2010 server and a single Exchange 2016 server. I understand this is applicable for co-existence with Office365 too.

You will need to change the name to match your Exchange 2010 server and also amend your AD name space instead of domain.local in the example.


On the Exchange 2010 server
New-MailboxDatabase -Server EX2010 -Name NewMDBforPFs -IsExcludedFromProvisioning $true
New-Mailbox -Name PFMailbox1 -Database NewMDBforPFs -UserPrincipalName PFMailbox1@domain.local -Password
Set-Mailbox -Identity PFMailbox1 -HiddenFromAddressListsEnabled $true
Set-MailboxDatabase NewMDBforPFs -RPCClientAccessServer EX2010

On the Exchange 2016 server
Set-OrganizationConfig -PublicFoldersEnabled Remote -RemotePublicFolderMailboxes PFMailbox1

Even after taking these steps Public Folders are not accessible. We can see that the DefaultPublicFolderMailbox is empty, you can see this using the following PoSh command. 

Get-Mailbox | FL name, *public*

You can correct this for all users by executing the command below, make sure you change domain.local for you AD domain name.

Get-mailbox | Set-Mailbox -DefaultPublicFolderMailbox domain.local/UserAccounts/PFMailbox1

Now open Outlook 2016, open the folder view and the Public Folder list is there!

Further reading...


https://justaucguy.wordpress.com/2017/12/18/outlook-2016-and-exchange-2010-public-folder-woes/
http://terenceluk.blogspot.com/2017/04/unable-to-expand-exchange-2010-public_5.html

Tuesday, 25 June 2013

Migrating public folders from Exchange 2007 / 2010 to another Exchange 2010 server

If you need to migrate to a new Exchange 2010 server; Either from Exchange 2007 or from an old Exchange 2010 installation, for example SBS 2011, you will need to move all the public folders to the new server. 

In this example there are two servers:

new-server and old-server

The first task to complete is to see what public folders are located on the old-server. To do that open the Exchange PowerShell as Administrator and enter:

Get-PublicFolderStatistics | Sort-Object -Descending ItemCount |ft -AutoSize

This gives us an idea of how many public folders there are and the item count. If you run the command on the new-server is should return only one result which is the NON_IPM_Subtree.

On the new-server open the Exchange PowerShell as Administrator and enter:

cd $exscripts


.\AddReplicaToPFRecursive.ps1 -TopPublicFolder “\” -ServerToAdd new-server
.\AddReplicaToPFRecursive.ps1 -TopPublicFolder “\NON_IPM_SUBTREE” -ServerToAdd new-server
This tells the old-server to add the new-server to it's list of servers to replicate public folders to for both System folder and User public folders.

Still on the new server run these commands to check that the new-server will take replicas from the old-server.

Get-PublicFolder \ -Recurse | ft name,parentpath,replicas
Get-PublicFolder \NON_IPM_Subtree -Recurse | ft name,parentpath,replicas

Still on the old-server, we can now tell the old-server to move all it's replicas to the new-server via this PowerShell script:

./MoveAllReplicas.ps1 -Server old-server -NewServer new-server

On the new-server we should be able to see the public folder item count increasing. This can take some time to complete.

Get-PublicFolderStatistics | Sort-Object -Descending ItemCount |ft -AutoSize

Because this was originally a migration from Exchange 2003 to 2010 the 'servers' container was still present in ADSIEDIT.MSC which needed removing to prevent replication back-fill from failing.

Monday, 8 April 2013

Bulk Importing PST files into Exchange 2010


If you have exported all your PSTs from Exchange 2003 with ExMerge you need to import them back into Exchange 2010. This can only be done via PowerShell.

Open Exchange PowerShell with elevated privileges. You will need to change below, the username to your current exchange administrator account.

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User SBSadmin
exit

Open Exchange PowerShell again with elevated privileges and issue this command, this is one long line. You have to use a UNC path. Change server_name with your new Exchange servers name.

Dir \\server_name\d$\*.pst | %{New-MailboxImportRequest -Name ImportOfPst -BatchName ImportPstFiles -AcceptLargeDataLoss -
BadItemLimit unlimited -Mailbox$_.BaseName -FilePath $_.FullName}

You can monitor the progress of the import with this command...
Remember Exchange will only import two PSTs at a time. This can be altered by editing the Exchange config file but you risk overloading your exchange server.

Get-MailboxImportRequest | Get-MailboxImportRequestStatistics | ft TargetAlias,Percent*,BytesTransferred*