Exchange 2007

WilsonJohn
WilsonJohn used Ask the Experts™
on
I need to uninstall exchange 2007 . I am trying to move replicas to exchange 2010 and ending up with below issue. Please help.

[PS] C:\Program Files\Microsoft\Exchange Server\Scripts>.\MoveAllReplicas.ps1 -S
erver mailserver -NewServer gwsmail
Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\GWSMAILPUBLIC:PublicFolderId
   ) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTREE\Events Root:
   PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...=offlineadd
   ress:PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...s\OAB Versi
   on 2:PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...\OAB Versio
   n 3a:PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...s\OAB Versi
   on 4:PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...YDIBOHF23SP
   DLT):PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...1-E21D8691B
   22F}:PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...YDIBOHF23SP
   DLT):PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...1-E21D8691B
   22F}:PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...F}\globalev
   ents:PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

Set-PublicFolder : The parameter "Replicas" cannot be $null or an empty array.
At C:\Program Files\Microsoft\Exchange Server\Scripts\ReplaceReplicaOnPFRecursi
ve.ps1:147 char:24
+         $_ | set-publicfolder <<<<  -server $_.OriginatingServer;
    + CategoryInfo          : InvalidOperation: (\NON_IPM_SUBTRE...1B22F}\inte
   rnal:PublicFolderId) [Set-PublicFolder], InvalidOperationException
    + FullyQualifiedErrorId : 77F9CDDB,Microsoft.Exchange.Management.MapiTasks
   .SetPublicFolder

[PS] C:\Program Files\Microsoft\Exchange Server\Scripts>
pfstst.txt
pfipmsub.txt
pfnonipmsub.txt
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
To me it looks like you may be running that Exchange PS1 script in the Windows PowerShell.  You should close that and open the Exchange Management Shell.

Author

Commented:
I am running PS1 script in exchange management shell only.
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Author

Commented:
I am not able to remove publice folder from exchange 2007 , now the live server is exchange 2010
I moved all replicas and still same issue. please check the attached file, OAB version 2, OAB version 3a and OAB version 4 showing public folder of exchange 2007. I think this is the reason I am not able to remover public folder from exchange 2007 . Public folder name in exchange 2010 is "public" . Please help
publicfolder.JPG

Commented:
I am unsure, but which server is generating your OAB?  also, which Public Folder server are the DBs on that server using?  I do not think it is related, but worth checking anyway.

Also, can you add replicas to these folders (manually or through script)?  Adding them and then letting them replicate often aids in removing the replica...  That is actually a great first step.
I am not able to uninstall old exchanger server 2007 , I am getting error like below.
--------------------------------------------------------
Microsoft Exchange Error
--------------------------------------------------------
The public folder database 'Public Folder' cannot be deleted.

Public Folder
Failed
Error:
The public folder database "MAILSERVER\Second Storage Group\Public Folder" contains folder replicas. Before deleting the public folder database, remove the folders or move the replicas to another public folder database. For detailed instructions about how to remove a public folder database, see http://go.microsoft.com/fwlink/?linkid=81409.

Please find the attached file referring to old exchange for OAB 2 , 3a and 4 to "MAILSERVER". It is because of this I am not able to remove exchange server 2007.
Please help.
publicfolder.JPG

Author

Commented:
i am closing this as no feedback came. i will be opening as a new question.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial