DHCP データベースをあるサーバーから別のサーバーにエクスポートしようとして失敗した場合、手順を正常に完了していない可能性があります。データベースを正常に移行するには、正しい順序でいくつかの手順を実行する必要があります。示されている順序で次の手順を使用し、データベースを再度エクスポートおよびインポートしてください。
これらの手順を実行するには、Administrators グループのメンバーであるか、適切な権限が委任されている必要があります。
DHCP データベースと構成を別のサーバーに移動するには、次の手順を実行します。
ローカル Administrators グループのメンバーであるアカウントを使用して、移行元 DHCP サーバーにログオンします。
[スタート]、[ファイル名を指定して実行] の順にクリックし、「cmd」と入力して、[OK] をクリックします。
「netsh dhcp server export C:\dhcp.txt all」と入力し、Enter キーを押します。
DHCP サーバー サービスのインストール
これらの手順を実行するには、Administrators グループのメンバーであるか、適切な権限が委任されている必要があります。
Windows Server を実行している既存のコンピューターに DHCP サーバー サービスをインストールするには、次の手順を実行します。
DHCP サーバー コンピューターで [スタート] ボタンをクリックし、[コントロール パネル] をクリックします。次に、[プログラムの追加と削除] をダブルクリックします。
[Windows コンポーネントの追加と削除] をクリックします。
Windows コンポーネント ウィザードの [コンポーネント] ボックスで [ネットワーク サービス] をクリックし、[詳細] をクリックします。
[動的ホスト構成プロトコル (DHCP)] チェック ボックスがまだオンになっていない場合は、これをオンにし、[OK] をクリックします。
Windows コンポーネント ウィザードで [次へ] をクリックして選択したコンポーネントをインストールします。指示されたら、Windows Server 2008 インストール CD をコンピューターの CD ドライブまたは DVD ドライブに挿入します。セットアップによって DHCP サーバーとツール ファイルがコンピューターにコピーされます。
セットアップが完了したら、[完了] をクリックします。
DHCP データベースのインポート
これらの手順を実行するには、Administrators グループのメンバーであるか、適切な権限が委任されている必要があります。
DHCP データベースをインポートするには、次の手順を実行します。
ローカル Administrators グループの明示的なメンバーであるユーザーとしてログオンします。ローカル Administrators グループのメンバーであるグループのユーザー アカウントは、機能しません。ドメイン コントローラーのローカル Administrators アカウントが存在しない場合は、ディレクトリ サービス復元モードでコンピューターを再起動してから、このセクションで後述するように管理者アカウントを使用してデータベースをインポートします。
エクスポートした DHCP データベース ファイルをコンピューターのローカル ハード ディスクにコピーします。
サーバー コンピューターで DHCP サービスが開始されていることを確認します。
[スタート]、[ファイル名を指定して実行] の順にクリックし、「cmd」と入力して、[OK] をクリックします。
コマンド プロンプトで 「netsh dhcp server import c:\dhcpdatabase.txt all」と入力し、Enter キーを押します。 c:\dhcpdatabase.txt はサーバーにコピーしたデータベース ファイルの完全パスとファイル名です。
DHCP サーバーの承認
これらの手順を実行するには、Administrators グループのメンバーであるか、適切な権限が委任されている必要があります。
DHCP サーバーを承認するには、次の手順を実行します。
DHCP サーバー コンピューターで [スタート] ボタンをクリックし、[すべてのプログラム] をポイントします。次に、[管理ツール] をポイントし、[DHCP] をクリックします。
DHCP スナップインのコンソール ツリーで、新しい DHCP サーバーを展開します。サーバー オブジェクトの右下に赤い矢印がある場合、サーバーはまだ承認されていません。
サーバー オブジェクトを右クリックし、[承認] をクリックします。
少し間をおいてから、サーバーを再度右クリックし、[最新の情報に更新] をクリックします。緑の矢印は、DHCP サーバーが承認されていることを示します。
Target | Microsoft.Windows.DHCPServer.Library.Database | ||
Parent Monitor | System.Health.ConfigurationState | ||
Category | StateCollection | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.SingleEventLogManualReset2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Microsoft.Windows.DHCPServer.Library.ActionAccount |
<UnitMonitor ID="Microsoft.Windows.DHCPServer.Library.Database.UnitMonitor.DatabaseCorrupt" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.Database" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="true" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DHCPServer.Library.Database.UnitMonitor.DatabaseCorrupt_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="EventRaised" MonitorTypeStateID="EventRaised" HealthState="Error"/>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-DHCP-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DHCPServer</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1057</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>