您能否提供一个最小化的unattend.xml文件以便在Windows 7中使用,这将在一个工作站上手动安装,更新和configuration,然后SysPrep将像这样运行:
C:\Windows\System32\sysprep> sysprep /generalize /oobe /unattend:unattend.xml /shutdown
然后将C:分区克隆到多个工作站(我使用的是Linux LiveUSB的partimage )。
这个unattend.xml应该configuration一个工作站,以便在克隆之后不要求任何东西。 工作站应该只显示一个普通的login屏幕,以前configuration的帐户。 它应该创build随机的计算机名称,不要尝试joinActive Directory,因为我不习惯将密码存储在unattend.xml 。
我不想使用Windows自动安装工具包(Windows AIK)中的Windows系统映像pipe理器(Windows SIM),因为这太过于复杂了 – 对我的口味来说太复杂了。
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <settings pass="generalize"> <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <RunSynchronous> <RunSynchronousCommand wcm:action="add"> <Description>Disable create user account</Description> <Path>reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\OOBE /v UnattendCreatedUser /t REG_DWORD /d 1 /f</Path> <Order>1</Order> </RunSynchronousCommand> </RunSynchronous> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <RegisteredOwner>Wile E. Coyote</RegisteredOwner> <RegisteredOrganization>ACME Corp.</RegisteredOrganization> <TimeZone>Central European Standard Time</TimeZone> <Computername>*</Computername> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Other</NetworkLocation> <ProtectYourPC>2</ProtectYourPC> <SkipUserOOBE>true</SkipUserOOBE> </OOBE> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <InputLocale>pl-PL</InputLocale> <SystemLocale>pl-PL</SystemLocale> <UILanguage>pl-PL</UILanguage> <UserLocale>pl-PL</UserLocale> </component> </settings> </unattend>
你只需要改变:
<RegisteredOwner> <RegisteredOrganization> <TimeZone> pl-PL ,例如en-US US。 您可以使用UnsecureJoin将其join没有密码的域。