次の方法で共有


Sysprep を使用した Orchestrator の展開

 

適用対象: System Center 2012 SP1 - Orchestrator,System Center 2012 - Orchestrator,System Center 2012 R2 Orchestrator

Sysrep を使用して Orchestrator を展開できます。 これによって、分散環境にある Orchestrator の任意のコンポーネントを自動化プロセスで展開できます。

次の手順を実行すると、Orchestrator コンポーネント用の Sysprep イメージを作成できます。

  1. Windows 2008 R2 イメージを準備する

  2. Sysprep 用の Orchestrator 応答ファイルを作成する

  3. Sysprep を使用して Orchestrator をインストールする

Windows 2008 R2 イメージを準備する

次の手順に従って Windows 2008 R2 イメージを準備します。

Windows 2008 R2 イメージを準備するには

  1. Windows Server 2008 R2 をインストールします。

  2. https://go.microsoft.com/fwlink/?LinkId=246814 から .NET Framework 4 をインストールします。 (これは、Orchestrator の Web 機能コンポーネントのみに必要です。)

Sysprep 用の Orchestrator 応答ファイルを作成する

Sysprep ツールを使用して Windows Server 2008 R2 に Orchestrator をインストールするには、先に、応答ファイルを使用する Sysprop プロセスの一部として Orchestrator をインストールします。

無人セットアップ .xml ファイルのサンプルについては、「Orchestrator.xml サンプル ファイル」を参照してください。 このサンプル ファイルをカスタマイズして、Windows システム イメージ マネージャーにインポートすることができます。

応答ファイルを作成するには

  1. 提供されたサンプルを使用して Orchestrator.xml 無人セットアップ ファイルを作成します。

  2. ファイルを %systemdrive%\windows\system32\sysprep にコピーします。

  3. 作業中のコンピューターに Orchestrator コンポーネントをインストールする Orchestrator バッチ ファイルを作成します。 このファイルの例は、「Orchestrator.xml サンプル ファイル」にあります。 これは Orchestrator.xml ファイルの中で言及されています。 Orchestrator のインストールに使用できるコマンド ラインのオプションについては、「Orchestrator コマンド ライン インストール ツールによるインストール」を参照してください。

  4. 次のコマンドを実行します。

      sysprep /generalize /oobe /shutdown /unattend:%systemdrive%\windows\system32\sysprep\Orchestrator.xml
    

Sysprep を使用して Orchestrator をインストールする

これで、環境に Orchestrator を自動的に展開するのに使用できる Windows 2008 R2 Sysprep イメージができました。

Orchestrator に使用する SQL Sysprep イメージの作成については、https://go.microsoft.com/fwlink/?LinkId=246815 を参照してください。

Orchestrator.xml サンプル ファイル

これは、Sysprep による Orchestrator の展開に使用されるサンプルの Orchestrator.xml です。 Windows システム イメージ マネージャー (https://go.microsoft.com/fwlink/?LinkId=246813 にある Windows 自動インストール キット内) を使用して、これをカスタマイズします。

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="https://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <AutoLogon>
                <Password>
                    <Value>password</Value>
                    <PlainText>true</PlainText>
                </Password>
                <LogonCount>1</LogonCount>
                <Enabled>true</Enabled>
                <Username>Administrator</Username>
            </AutoLogon>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cmd /c %systemdrive%\sco\install.bat</CommandLine>
                    <Order>1</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:c:/windowsenterprise/extracted/sources/install.wim#Windows Server 2008 R2 SERVERENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

これは、Orchestrator.xml 無人セットアップ ファイルの FirstLogonCommand 内で参照されている install.bat サンプル ファイルです。 このバッチ ファイルを %systemdrive%\sco ディレクトリに、Orchestrator セットアップ ファイルとともに作成します。 このファイルは、コマンド ライン インストール ツールを使用して、カスタマイズできます。 詳細については、「Orchestrator コマンド ライン インストール ツールによるインストール」をご覧ください。

%systemdrive%\sco\setup\setup.exe /Silent /ServiceUserName:%computername%\administrator /ServicePassword:password /Components:All /DbServer:%computername%  /DbPort:1433 /DbNameNew:OrchestratorSysPrep /WebConsolePort:82 /WebServicePort:81 /OrchestratorRemote /UseMicrosoftUpdate:1 /SendCEIPReports:1 /EnableErrorReporting:always