Windows7でDefaultプロファイルの作成
いままではWindows Enabler(コピーボタンが使える)を使っていたのでXPとかと同様に作業していた。
久しぶりに使ってみるとコピーボタンが使えなくなって青くなる。
代替案が見つからず正規の手順を模索するとWindows System Image Managerを使うらしい。そそてWindowsイメージにイメージを指定すると。
インストールディスクのinstall.wimを指定すると書き込み権とか言うのでコピーしてみるがエラーになる。どーしろってんだ。正規の手順を諦めて、応答ファイルだけなんとかしたい。(ここに間違いがある)
やっと見つけた
http://technet.microsoft.com/ja-jp/library/jj134269.aspx
<settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CopyProfile>true</CopyProfile> </component> </settings>
既存のunattend.xmlのspecializeの中にcomponentを入れれば良さそう。
sysprepしてからGhostでクローンすることが前提なunattend.xml(x86)
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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> <NetworkLocation>Work</NetworkLocation> <ProtectYourPC>1</ProtectYourPC> <SkipMachineOOBE>true</SkipMachineOOBE> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> <RegisteredOwner>wsd</RegisteredOwner> <RegisteredOrganization>kenmituo</RegisteredOrganization> <TimeZone> (W)</TimeZone> </component> <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" 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> <settings pass="generalize"> <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="x86" 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> <component name="Microsoft-Windows-Security-Licensing-SLC" processorArchitecture="x86" 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> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Identification> <JoinWorkgroup>WORKGROUP</JoinWorkgroup> </Identification> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CopyProfile>true</CopyProfile> </component> </settings> <cpi:offlineImage cpi:source="wim:c:/vista/x86/image.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi"/> </unattend>
コマンドプロンプトを管理者として実行してからのsysprep.batを実行する。
unattend.xmlはC:\kenmituoに保存する。
REM c:\kenmituoで実行すること ::taskkill /IM sysprep.exe /F copy c:\kenmituo\unattend.xml C:\Windows\System32\sysprep /y cd C:\Windows\System32\sysprep sysprep.exe /generalize /oobe /reboot /unattend:unattend.xml
Ghost用なんだけど、sysprepを実行して再起動後に壁紙が設定通りなら成功ってことになる。
間違いの修正
install.wimじゃなくてinstall_windows_7_enterprise.clgを指定すると幸せになれる。