windows 2008 sysprep sample(修正版)
仕事でものすごい数のWindows Server 2008 R2 を立てることになりそう。
自宅の検証環境でも簡単にWindows Serverをプロビジョニングしたくなりそうなので、Sysprep.iniを見直した。
Goal:Virtual Machineをインポートして起動したら、初回ログオンまでNo Touch。
Sysprep.exe実行時オプション:
sysprep.exe /quiet /generalize /oobe /shutdown /unattend:<Filepath>
設定内容
・言語/ロケール設定
・使用許諾契約の表示スキップ
・Product Key入力
・ライセンス認証猶予期限リセット可能回数のカウントスキップ
・インストール済みデバイスの維持
・Administratorのパスワード設定
・自動ログオン
Sysprep.ini
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserData> <AcceptEula>true</AcceptEula> <ProductKey> <WillShowUI>OnError</WillShowUI> <Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key> </ProductKey> </UserData> </component> </settings> <settings pass="generalize"> <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SkipRearm>1</SkipRearm> </component> <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <OOBE> <HideEULAPage>true</HideEULAPage> </OOBE> <UserAccounts> <AdministratorPassword> <Value>Password</Value> <PlainText>true</PlainText> </AdministratorPassword> </UserAccounts> <AutoLogon> <Password> <Value>Password</Value> <PlainText>true</PlainText> </Password> <Enabled>true</Enabled> <Domain>.</Domain> <Username>administrator</Username> </AutoLogon> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <InputLocale>0411:00000411</InputLocale> <SystemLocale>ja-jp</SystemLocale> <UILanguage>ja-jp</UILanguage> <UserLocale>ja-jp</UserLocale> </component> </settings> <cpi:offlineImage cpi:source="wim:e:/sources/install.wim#Windows Server 2008 R2 SERVERENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>