Avatar of Ralph Scharping
Ralph Scharping
Flag for Germany asked on

Exchange 2013 PF migration: OAB

Hi,

I am migrating from Exchange 2007 to 2013.  The 2007 server is an SBS2008.  Public Folders are not used.  However, the database exists.  I tried to delete it but received a message that sais the public folder database contains the public address book, and I need to migrate this address book to another location before I can delete the database.  
I have started reading the articles on exchange migration.  Also I saw the scritpts that create the files for later comparison and so on.
The list on my file is very short and it also contains only folders with size 0.

Is there a simpler way of getting rid of the old public folder database on the legacy server?

Thanks,
Ralph
ExchangeSBS

Avatar of undefined
Last Comment
Gareth Gudger

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Simon Butler (Sembee)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Ralph Scharping

ASKER
Hi Simon,

I have done that, thank you.
Now, when trying to remove the public folder database, I am told that I need to remove all public folders.  The public folder administration console from the emc-toolbox in 2007 shows only two empty folders:  public standard folders and public system folders.  Nothing inside.

Get-PublicFolderStatistics

Name                                     ItemCount               LastAccessTime
----                                     ---------               --------------
Default                                  0                  08.11.2014 10:30:21
EX:/o=First Organization/ou=Exchange Adm 20                 08.11.2014 01:00:01
inistrative Group (FYDIBOHF23SPDLT)
EX:/o=First Organization/ou=Exchange Adm 0                  08.11.2014 01:00:01
inistrative Group (FYDIBOHF23SPDLT)
exchangeV1                               401                08.11.2014 10:30:21
globalevents                             0                  08.11.2014 10:30:21
internal                                 0                  08.11.2014 10:30:21
microsoft                                0                  08.11.2014 10:30:21
OAB Version 2                            32                 08.11.2014 02:03:41
OAB Version 3a                           32                 08.11.2014 02:03:41
OAB Version 4                            2                  08.11.2014 02:03:41
OWAScratchPad{C9F1DA9E-545B-4BEA-8078-B4 0                  08.11.2014 10:30:21
8E52775079}
schema-root                              0                  08.11.2014 10:30:21
StoreEvents{C9F1DA9E-545B-4BEA-8078-B48E 0                  08.11.2014 10:30:21
52775079}
/o=First Organization/cn=addrlists/cn=oa 0                  08.11.2014 01:00:01
bs/cn=Standard-Offlineadressbuch

If I run
Get-PublicFolder -Server MX "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server MX -Recurse -ErrorAction:SilentlyContinue

I am told that there is no public folder that matches the identity  "\NON_IPM_SUBTREE"

And idea?

Thanks,
Ralph
Simon Butler (Sembee)

Try

Get-PublicFolder -Server MX "\" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server MX -Recurse -ErrorAction:SilentlyContinue

Then run

get-publicfolderstatistics

Once that returns no results, you are ready to drop the store.

Simon.
Ralph Scharping

ASKER
It sais it can't find a public folder that matches the identity "\".
I had tried that before, but didn't think much of it since there were no user folders in the first place...

Publicfolderstatistics shows all the system folders as posted earlier.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Ralph Scharping

ASKER
This is the output:

[PS] C:\Windows\system32>Get-PublicFolder -Server mx "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server mx -Recurse -ErrorAction:SilentlyContinue
Get-PublicFolder : Es ist kein 'PublicFolder' vorhanden, das der folgenden Identität entspricht: '\NON_IPM_SUBTREE'. Stellen Sie sicher, dass die richtige PublicFolder-Identität angegeben wurde und dass Sie über die erforderlichen Berechtigungen zum Anzeigen von PublicFolder verfügen.
Bei Zeile:1 Zeichen:17
+ Get-PublicFolder <<<<  -Server MX "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server dns-sbs -Recurse -ErrorAction:SilentlyContinue
    + CategoryInfo          : NotSpecified: (0:Int32) [Get-PublicFolder], MapiOperationException
    + FullyQualifiedErrorId : 5F7E8718,Microsoft.Exchange.Management.MapiTasks.GetPublicFolder
Gareth Gudger

If you are sure there is no data in the Public Folders. Or at least nothing you want to keep.

You can try the method in Pete Long's article. Check Step 7 in the second set of steps in the bottom half of this page.
http://www.petenetlive.com/KB/Article/0000816.htm
Ralph Scharping

ASKER
Hi Gareth,

this is pathetic.  I did exactly what Pete suggested, but I STILL get the same message.  
get-publicfolderstatistics still shows the same result - except that some of the system folders that previously had a few bytes content are now empty.  
This is the output now:

[PS] C:\Windows\system32>get-publicfolderstatistics

Name                                     ItemCount               LastAccessTime
----                                     ---------               --------------
Default                                  0                  09.11.2014 09:06:02
EX:/o=First Organization/ou=Exchange Adm 0                  09.11.2014 09:06:00
inistrative Group (FYDIBOHF23SPDLT)
EX:/o=First Organization/ou=Exchange Adm 0                  09.11.2014 09:06:00
inistrative Group (FYDIBOHF23SPDLT)
exchangeV1                               401                09.11.2014 09:06:02
globalevents                             0                  09.11.2014 09:06:02
internal                                 0                  09.11.2014 09:06:01
microsoft                                0                  09.11.2014 09:06:02
OWAScratchPad{C9F1DA9E-545B-4BEA-8078-B4 0                  09.11.2014 09:06:02
8E52775079}
schema-root                              0                  09.11.2014 09:06:02
StoreEvents{C9F1DA9E-545B-4BEA-8078-B48E 0                  09.11.2014 09:06:01
52775079}

Do you have another idea?  I feat this will even still be the case after I do the entire migration...

Thanks,
Ralph
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Gareth Gudger

How far did you get with Pete's instructions? Did it let you create a blank Public Folder database? Were you then able to remove the blank database?
Ralph Scharping

ASKER
I dismounted the database, renamed the containing folders, mounted it again and received the warning that a new database was going to be created.
Then, an instant after it showed online, I deleted it.  Again the same message:  It cannot be deleted - it still contains folders.

I found another page where someone sais that you need to leave on system administrator account on the mailbox folder in order to do this, so I re-created a system administrator user ("admin") and the message store, and I logged on to the server as this account.  Same thing.
The two commands that are supposed to delete all user and all system folders state that the identitis "\" and "\Non_Ipm_Subtree" don't exist.  I have posted the get-publicfolderstatistics output.  At the same time the public folder management console in 2007s EMC shows now content in neither user nor system folders.

There are only two servers on the organisation, one 2007 and one 2013.  The 2013 does not contain any public folder configuration.

I'm getting panicky.  This needs to be finished by Monday morning...!

Any ideas you might have would be greatly appreciated.

Thanks,
Ralph
Gareth Gudger

That's so weird. I can safely say I have used both Simon's method and Pete's method.

Just for a sanity check, you are substituting MX for your own server name right?

Also, does the 2007 server still have a Mailbox Database? I have seen it where the Public Folders will not delete if the Mailbox Database was removed first.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Ralph Scharping

ASKER
*smile*
right.
SOLUTION
Gareth Gudger

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Ralph Scharping

ASKER
I noticed one thing:
doing copy-paste from web to powershell sometimes gives me ASCII-crap.  I am running a German installation with German keyboard-layout.  So sometimes, when things go strange, I need to type the commands rather than paste them to the shell.
When I do that, the error message changes depending on what excactly I write.

If I type
Get-PublicFolder -Server MX "\Non_Ipm_Subtree" ...

I get Get-PublicFolder : Es ist kein 'PublicFolder' vorhanden, das der folgenden Identität entspricht: '\NON_IPM_SUBTREE'....

But if I type  
Get-PublicFolder -Server MX "Non_Ipm_Subtree" ...

i get Get-PublicFolder : Es ist kein 'PublicFolder' vorhanden, das der folgenden Identität entspricht: 'Non_Ipm_Subtree....

In the error message the path is capitalized if I spell it right and spelled the way I spell it when it is not.
Could it be this is a rights issue?
Did I mention the 2007 is SBS208?

Thanks,
Ralph
Ralph Scharping

ASKER
Is the option including ADSIedit going to affect my 2013-server?  Currently I cannot create public folder mailboxes there save with the -holdformigration switch...
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Gareth Gudger

Ralph Scharping

ASKER
This really could be applicable.
But I don't understand this:

Wir haben mittels ADSiEdit den HomeMDB Attribute von System Attendant konfigurieren und dort den  DistinguishedName der Mailbox Store hinzugefügt.

( We have configured the HomeMDB-Attribute of System Attendant using ADSIedit and added the DistinguishedName of the message store)

Where do I find this System Attendant?  What excactly is meant by DistinguishedName of the Mailbox Store?  Is that the LDAP-Path?

Do you speak German?
Simon Butler (Sembee)

You have to include the \ at the start of any paths for public folders. Otherwise it doesn't work.
The adsiedit method shouldn't affect the Exchange 2013 platform, but it is always the last resort. Public Folders are slow, you can make a change and nothing appears to happen for hours.

Simon.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Ralph Scharping

ASKER
With a little help from Dr. Google I found how to determine the Mailbox Store's destinguished name and how to set the HomeDB-value of System Attendant.  It was okay, though.  It is set to the Message Store that is hosted on the same server that I am trying to remove the public folder db from.
I'm going to reboot the machine just in case.
Because this is a message store I just re-created a while ago.  I had already removed all mailboxes plus the mailbox store from this server.
Ralph Scharping

ASKER
Thanks, guys.
I ended up deleting the store using ADSIedit.  It worked just fine an did not cause any trouble with my 2013-installation, either.

Can't say I understood what happened, but I got there thanks to you guys.  You saved my weekend.  Thank you so much.
Gareth Gudger

You are most welcome!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.