組織内の最後の Exchange Server 2013 を削除する方法
検証で作っていた Exchange Server 2013 を入れなおそうと思って
削除方法を探していたんですが、MS の TechNET にも載っておらず。
削除自体は Exchange Server 2010 と同様に「アプリケーションの追加と削除」から行います。
この際に「前提条件」が検査され、全てパスされていなければいけません。
前提条件とは、全ての「メールボックス」「アーカイブ」「調達」「パブリックフォルダ」が停止されていることです。
これらの前提条件をクリアするのに「Exchange 管理シェル(Exchange Management Shell)」を使用します。
削除するコマンドは Exchange 2010 と同様で、以下のサイトが非常に参考になりました。
組織内の最後のExchange2010を削除する方法(ひろのブログさん)
http://ameblo.jp/c33sr14/entry-11228249593.html
■自分の メールボックス データベース を知る
「Exchange管理センター」を開いて「サーバ」に表示される名前を確認する
または、Exchangeを削除する際の「前提条件」の検査で削除できなかったときは
以下のメッセージが表示されるはずです
--------------------------------------------------------
Microsoft Exchange エラー
--------------------------------------------------------
メールボックス データベース 'Mailbox Database 1234567890' を削除できません。
この「Mailbox Database 1234567890」が作成されたデータベースです。
人によって違いますのでメモしておいてください。
■メールボックスを削除する
「Exchange管理センター」を開いて「受信者」->「メールボックス」に表示される
全てのメールボックスを削除してください。
また、これだけでは全てのメールボックスを消すことができません。
コマンドを使って残ったメールボックスも削除します。
★メールボックス一覧を表示する
Get-Mailbox -Database 'メールボックスデータベース'
例:
Get-Mailbox -Database 'Mailbox Database 1234567890'
★メールボックスを停止(削除)する
Disable-Mailbox メールボックス名
例:
Disable-Mailbox Administrator
Disable-Mailbox DiscoverySearchMailbox*
※ メールボックス名の後ろに「*」を入力すると省略できます
※ * で一括削除は出来なかったので、1つずつ消していきます
■アーカイブを削除する
作っているかどうかはサーバの設定により異なります。
以下の手順で確認し、あったら削除してください。
★アーカイブの一覧を表示する
Get-Mailbox -Database 'メールボックスデータベース' -Archive
例:
Get-Mailbox -Database 'Mailbox Database 1234567890' -Archive
★アーカイブを削除する
Disable-Mailbox メールボックス名 -Archive
例:
Disable-Mailbox Administrator -Archive
■調停ボックスの削除
Exchange は「承認フレームワーク」というシステムを使い、メール承認要求しています。
承認フレームワークはワークフローごとに、調停メールボックスという特別なメールボックスを使用しています。
このメールボックスはコマンドで確認する必要があります。
★調停ボックスの一覧を表示する
Get-Mailbox -Database 'メールボックスデータベース' -Arbitration
例:
Get-Mailbox -Database 'Mailbox Database 1234567890' -Arbitration
★調停ボックスを削除する
Disable-Mailbox '調停ボックス名' -Arbitration -DisableLastArbitrationMailboxAllowed
例:
Disable-Mailbox 'SystemMailbox{b1*' -Arbitration -DisableLastArbitrationMailboxAllowed
■パブリックフォルダーの削除
デフォルト設定では使われていないので、明示的に作成していなければ作業不要です。
パブリックフォルダーって MS が削除するって昔、言っていたんですが
再構成されて生き残ったんですね。まぁ、実際消えると困るユーザーが多かったんですが。
★パブリックフォルダーの表示と削除
「Exchange管理センター」を開いて「パブリックフォルダー」->「パブリックフォルダー」に表示される
全てのものを削除してください。サブフォルダーがある場合は、そちらを消してから親フォルダーを消します。
これらの作業を全てやり終えたら、Exchange の削除が実行できるはずです。
●Exchange 2013 再セットアップ時の注意●
私の環境では、削除した後の再セットアップで、前提条件チェックにて
以下のメッセージが表示されて先に進むことができませんでした。
Error:
Global updates need to be made to Active Directory, and this user account isn't a member of the 'Enterprise Admins' group.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.GlobalUpdateRequired.aspx
Error:
You must be a member of the 'Organization Management' role group or a member of the 'Enterprise Admins' group to continue.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.GlobalServerInstall.aspx
Error:
You must use an account that's a member of the Organization Management role group to install or upgrade the first Mailbox server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedBridgeheadFirstInstall.aspx
Error:
You must use an account that's a member of the Organization Management role group to install the first Client Access server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedCafeFirstInstall.aspx
Error:
You must use an account that's a member of the Organization Management role group to install the first Client Access server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedFrontendTransportFirstInstall.aspx
Error:
You must use an account that's a member of the Organization Management role group to install or upgrade the first Mailbox server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedMailboxFirstInstall.aspx
Error:
You must use an account that's a member of the Organization Management role group to install or upgrade the first Client Access server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedClientAccessFirstInstall.aspx
Error:
You must use an account that's a member of the Organization Management role group to install the first Mailbox server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedUnifiedMessagingFirstInstall.aspx
Error:
Setup encountered a problem while validating the state of Active Directory: Couldn't find the Enterprise Organization container.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.AdInitErrorRule.aspx
Error:
The forest functional level of the current Active Directory forest is not Windows Server 2003 native or later. To install Exchange Server 2013, the forest functional level must be at least Windows Server 2003 native.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.ForestLevelNotWin2003Native.aspx
Error:
Either Active Directory doesn't exist, or it can't be contacted.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.CannotAccessAD.aspx
インストールを実行しているユーザに権限がない(Enterprise Admins)と言われているのですが
実際には権限を持ったユーザ(ここでは exadmin を作っています)で実行しています。
「サーバをドメインに入りなおし」「ユーザの再作成」などをしても全く効果なし。
Webで廻っていると、Exchange 2010 の残骸が残っててセットアップが進まない例がありました。
Exchange Server 2013 の構成 − インストール(やまさんノートさん)
http://yama30501.blog137.fc2.com/blog-entry-119.html
ブログの中ほどに「ADSIエディターを使った掃除」の記載があります。
Exchange 2013 でも同様に残骸が残っていましたので、Exchange に関する2つのコンテナを削除しました。
削除後、正常にインストールまで進むことができました。
まぁ、なんていうかアンインストーラーは全部綺麗に消していただきたいですな・・・
インストーラーも「マルチランゲージ版」なら自動的に「日本語」を選択して表示してほしいんだけど
英語にしかならないのはどうにかならないものですかね・・・