Solved

remove exchange 2007, remove a public folder from an old server

Posted on 2014-01-09
6
1,336 Views
Last Modified: 2014-03-21
Hi Experts,

We have 2 exchange 2007 servers running on a domain. The reason we have 2 exchanges is that 1st (old) exchange often stopped  so we added 2nd (new) exchange. it has been like that for a few years but now I am trying to get rid of the old exchange.

basically whenever I tried to delete public folder on OLD server, error says it contains folder replicas and remove the folders or move the replicas to another public folder database.


 I followed this (http://support.microsoft.com/kb/927464)  and when I run below.

Get-PublicFolderStatistics -server <Exchange 2007_Server_Name> | fl | out-file C:\PFstat.txt

I got an error.
-------------------------------------------------
The operation cannot be executed because there is no available public folder database on the server 'OLDSERVER'.
At line:1 char:1
+  <<<< Get-PublicFolderStatistics -server OLDSERVER | fl | out-file C:\PFsta
t.txt
    + CategoryInfo          : InvalidOperation: (:) [], InvalidOperationExcept
   ion
    + FullyQualifiedErrorId : 77D1CD8B
-------------------------------------------------

I thought there are no data so ignored above and run below.

-------------------------------------------------------------------------------------------
[PS] C:\Program Files\Microsoft\Exchange Server\Scripts>.\MoveAllReplicas.ps1 -Server OLDSERVER -NewServer NEWSERVER

Get-PublicFolder : There is no existing PublicFolder that matches the following
 Identity: '\'. Please make sure that you specified the correct PublicFolder Id
entity and that you have the necessary permissions to view PublicFolder.
At line:1 char:17
+ get-publicfolder <<<<  -identity \ -Recurse -resultsize unlimited
    + CategoryInfo          : NotSpecified: (0:Int32) [Get-PublicFolder], Mapi
   LogonFailedException
    + FullyQualifiedErrorId : 65D269D,Microsoft.Exchange.Management.MapiTasks.
   GetPublicFolder

Get-PublicFolder : There is no existing PublicFolder that matches the following
 Identity: '\NON_IPM_SUBTREE'. Please make sure that you specified the correct
PublicFolder Identity and that you have the necessary permissions to view Publi
cFolder.
At line:1 char:17
+ get-publicfolder <<<<  -identity \NON_IPM_SUBTREE -Recurse -resultsize unlimi
ted
    + CategoryInfo          : NotSpecified: (0:Int32) [Get-PublicFolder], Mapi
   LogonFailedException
    + FullyQualifiedErrorId : D6E49E3,Microsoft.Exchange.Management.MapiTasks.
   GetPublicFolder
----------------------------------------------------------------

how can I solve these errors?

Cheers,
yasuyasu
0
Comment
Question by:YasuYasu
6 Comments
 
LVL 53

Expert Comment

by:Will Szymkowski
Comment Utility
If this is an old exchange server that is no longer being used I would just remove the public folder using ADSIEdit method.

Remove public folders ADSIEdit - http://msexchangetips.blogspot.ca/2006/07/exchange-cannot-delete-public-folder.html?m=1

Before using ADSIEdit make sure that you have replicas on other servers.

Will.
0
 
LVL 7

Expert Comment

by:dsnegi_25dec
Comment Utility
I will suggest you don't go with adsiedit straight away until & unless you are not familiar.

what about when you run get-public folder .

Open the public folder go for each content properties check if the entries of old server remove from there hope that will help

http://support.microsoft.com/default.aspx?scid=kb;EN-US;927464

http://exchangepedia.com/2008/05/how-to-remove-the-public-folder-store.html
0
 

Author Comment

by:YasuYasu
Comment Utility
Will,

I am not so familiar with ADSI so I will keep this to last resort.

dsnegi_25dec,

I have been trying to do the link you provided.
Get-publicfolder doesn't work but Get-publicfolderstatics will run properly. It looks like nothing contain  (can you confirm? ) but things I don't understand is that if there are no data and doesn't exist in the public folder database in an old server, why exchange doesn't allow me to delete the public folder database.
I understand that the old server doesn't have public folders but has PF database so I need to move replicas to different PF database but MoveAllReplica.ps1 doesn't work.  
Is there another solution for it?

Thanks

yasuyasu
-------------------------------------------------------------------------
[PS] C:\Windows\system32>Get-PublicFolder
Get-PublicFolder : There is no existing PublicFolder that matches the following
 Identity: '\'. Please make sure that you specified the correct PublicFolder Id
entity and that you have the necessary permissions to view PublicFolder.
At line:1 char:17
+ Get-PublicFolder <<<<
    + CategoryInfo          : NotSpecified: (0:Int32) [Get-PublicFolder], Mapi
   LogonFailedException
    + FullyQualifiedErrorId : B3EA0B16,Microsoft.Exchange.Management.MapiTasks
   .GetPublicFolder
--------------------------------------------------------------------------------------------------

[PS] C:\Windows\system32>Get-PublicFolderStatistics

Name                                     ItemCount               LastAccessTime
----                                     ---------               --------------
Add to blocklist                         0              5/04/2011 12:13:49 p.m.
Add to whitelist                         0              5/04/2011 12:13:49 p.m.
EX:/o=MPS/ou=Exchange Administrative Gro 0             20/04/2011 12:11:55 p.m.
up (FYDIBOHF23SPDLT)
EX:/o=MPS/ou=Exchange Administrative Gro 0              23/12/2010 1:00:01 a.m.
up (FYDIBOHF23SPDLT)
GFI AntiSpam Folders                     0              5/04/2011 12:13:49 p.m.
globalevents                             0              17/03/2013 2:23:51 a.m.
I want this Discussion list              0              5/04/2011 12:13:49 p.m.
internal                                 0              17/03/2013 2:23:51 a.m.
MPS Shared Contacts List                 122            5/04/2011 12:13:49 p.m.
OWAScratchPad{B798B466-87B4-46AD-8215-78 0              17/03/2013 2:23:51 a.m.
BB9E6DC051}
Processed                                0              5/04/2011 12:13:49 p.m.
Processed                                0              5/04/2011 12:13:49 p.m.
Processed                                0              5/04/2011 12:13:49 p.m.
Processed                                0              5/04/2011 12:13:49 p.m.
Processed                                0              5/04/2011 12:13:49 p.m.
StoreEvents{B798B466-87B4-46AD-8215-78BB 0              17/03/2013 2:23:51 a.m.
9E6DC051}
This is legitimate email                 0              5/04/2011 12:13:49 p.m.
This is spam email                       0              5/04/2011 12:13:49 p.m.
Default                                  0              19/11/2010 6:18:27 p.m.
EX:/o=MPS/ou=First Administrative Group  0             20/04/2011 12:05:59 p.m.
EX:/o=MPS/ou=First Administrative Group  0              19/11/2010 6:18:27 p.m.
exchangeV1                               401            19/11/2010 6:18:27 p.m.
globalevents                             0              19/11/2010 6:18:27 p.m.
internal                                 0              19/11/2010 6:18:27 p.m.
Leave Calendar                           23             5/04/2011 12:13:49 p.m.
microsoft                                0              19/11/2010 6:18:27 p.m.
OAB Version 2                            0              29/12/2010 2:11:40 a.m.
OAB Version 3a                           0              29/12/2010 2:11:41 a.m.
OAB Version 4                            0              29/12/2010 2:11:41 a.m.
OWAScratchPad{2CD38B4E-9C74-4C13-905F-14 0              19/11/2010 6:18:27 p.m.
80E4B52675}
schema-root                              0              19/11/2010 6:18:27 p.m.
Shared Address List                      72             20/04/2011 9:20:58 a.m.
Shared Calendar                          385            19/04/2011 4:58:59 p.m.
StoreEvents{2CD38B4E-9C74-4C13-905F-1480 0              19/11/2010 6:18:27 p.m.
E4B52675}
/o=MPS/cn=addrlists/cn=oabs/cn=Default O 0              29/12/2010 2:11:39 a.m.
ffline Address List
Internet Newsgroups                      0              5/04/2011 12:13:49 p.m.
-------------------------------------------------------------------------------------------------------------

[PS] C:\Windows\system32>Get-PublicFolderStatistics -server OLDSERVER | fl | out-file C:\PFstat.txt
The operation cannot be executed because there is no available public folder da
tabase on the server 'OLDSERVER'.
At line:1 char:1
+  <<<< Get-PublicFolderStatistics -server OLDSERVER | fl | out-file C:\PFsta
t.txt
    + CategoryInfo          : InvalidOperation: (:) [], InvalidOperationExcept
   ion
    + FullyQualifiedErrorId : 77D1CD8B

-----------------------------------------------------------------------------

[PS] C:\Windows\system32>Get-PublicFolderDatabase

Name                           Server               StorageGroup
----                           ------               ------------
Public Folder Database         OLDSERVER          Second Storage Group
Public Folders                       NEWSERVER          Second Storage Group
-----------------------------------------------------------------------------
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 17

Expert Comment

by:WORKS2011
Comment Utility
Have you tried the PF Admin Tool, click here.

Run it from a workstation and set the permission and you can then control public folders from Outlook.
0
 

Accepted Solution

by:
YasuYasu earned 0 total points
Comment Utility
thanks everyone.

This case was handed over my colleage and I didn't need to do.
0
 

Author Closing Comment

by:YasuYasu
Comment Utility
This case was handed over my colleage and I didn't need to do.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now