Bagaimana cara membuat unattend.xml sederhana sehingga gambar tidak meminta pengguna baru?


1

Saya menggunakan satu mesin virtual dan clonezilla untuk membuat beberapa gambar pengujian untuk mempelajari sedikit tentang penerapan dalam pengaturan mesin yang berbeda.

Saya sudah berhasil membuat beberapa gambar untuk windows 8.1 dan membuatnya berfungsi seperti yang saya inginkan tanpa perlu sysprep, karena sistem ini sangat mudah ditempa dengan perangkat keras yang berbeda.

Masalahnya muncul ketika saya ingin membuat gambar Windows 7, dan saya pasti perlu menggunakan sysprep dengan opsi "generalisasi" untuk menerapkannya ke beberapa mesin dengan perangkat keras yang berbeda, secara default Sysprep menyebabkan gambar saya meminta pengguna baru sementara saya berharap Hanya dapat menggunakan pengguna yang sama.

Saya mencoba menggunakan situs "Windows Answer File Generator" untuk menghasilkan xml yang tidak membuat oobe pengguna dan oobe mesin, tetapi akhirnya menghasilkan banyak masalah di boot pertama mencegah gambar dari digunakan, dan saya tidak tahu apakah saya melakukannya dengan benar.

Adakah yang bisa membantu saya? Terima kasih atas perhatian Anda dan maaf untuk bahasa Inggris yang tidak begitu baik

Edit:

Ini adalah file autounattend.xml panjang yang saya dapatkan dengan 'Windows Answer File Generator'

<?xml version="1.0" encoding="UTF-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
   <settings pass="windowsPE">
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <SetupUILanguage>
            <UILanguage>pt-BR</UILanguage>
         </SetupUILanguage>
         <InputLocale>66582:00010416</InputLocale>
         <SystemLocale>pt-BR</SystemLocale>
         <UILanguage>pt-BR</UILanguage>
         <UserLocale>pt-BR</UserLocale>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <SetupUILanguage>
            <UILanguage>pt-BR</UILanguage>
         </SetupUILanguage>
         <InputLocale>66582:00010416</InputLocale>
         <SystemLocale>pt-BR</SystemLocale>
         <UILanguage>pt-BR</UILanguage>
         <UserLocale>pt-BR</UserLocale>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <Diagnostics>
            <OptIn>false</OptIn>
         </Diagnostics>
         <DiskConfiguration>
            <WillShowUI>OnError</WillShowUI>
            <Disk wcm:action="add">
               <DiskID>0</DiskID>
               <WillWipeDisk>false</WillWipeDisk>
               <CreatePartitions>
                  <CreatePartition wcm:action="add">
                     <Order>1</Order>
                     <Type>Primary</Type>
                     <Size>100</Size>
                  </CreatePartition>
                  <CreatePartition wcm:action="add">
                     <Order>2</Order>
                     <Type>Primary</Type>
                     <Extend>true</Extend>
                  </CreatePartition>
               </CreatePartitions>
               <ModifyPartitions>
                  <ModifyPartition wcm:action="add">
                     <Format>NTFS</Format>
                     <Label>System Reserved</Label>
                     <Order>1</Order>
                     <Active>true</Active>
                     <PartitionID>1</PartitionID>
                     <TypeID>0x27</TypeID>
                  </ModifyPartition>
                  <ModifyPartition wcm:action="add">
                     <Active>true</Active>
                     <Format>NTFS</Format>
                     <Label>OS</Label>
                     <Letter>C</Letter>
                     <Order>2</Order>
                     <PartitionID>2</PartitionID>
                  </ModifyPartition>
               </ModifyPartitions>
            </Disk>
         </DiskConfiguration>
         <ImageInstall>
            <OSImage>
               <InstallTo>
                  <DiskID>0</DiskID>
                  <PartitionID>2</PartitionID>
               </InstallTo>
               <WillShowUI>OnError</WillShowUI>
               <InstallToAvailablePartition>false</InstallToAvailablePartition>
            </OSImage>
         </ImageInstall>
         <UserData>
            <AcceptEula>false</AcceptEula>
            <FullName>User</FullName>
            <Organization />
         </UserData>
         <EnableFirewall>true</EnableFirewall>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <Diagnostics>
            <OptIn>false</OptIn>
         </Diagnostics>
         <DiskConfiguration>
            <WillShowUI>OnError</WillShowUI>
            <Disk wcm:action="add">
               <DiskID>0</DiskID>
               <WillWipeDisk>false</WillWipeDisk>
               <CreatePartitions>
                  <CreatePartition wcm:action="add">
                     <Order>1</Order>
                     <Type>Primary</Type>
                     <Size>100</Size>
                  </CreatePartition>
                  <CreatePartition wcm:action="add">
                     <Order>2</Order>
                     <Type>Primary</Type>
                     <Extend>true</Extend>
                  </CreatePartition>
               </CreatePartitions>
               <ModifyPartitions>
                  <ModifyPartition wcm:action="add">
                     <Format>NTFS</Format>
                     <Label>System Reserved</Label>
                     <Order>1</Order>
                     <Active>true</Active>
                     <PartitionID>1</PartitionID>
                     <TypeID>0x27</TypeID>
                  </ModifyPartition>
                  <ModifyPartition wcm:action="add">
                     <Active>true</Active>
                     <Format>NTFS</Format>
                     <Label>OS</Label>
                     <Letter>C</Letter>
                     <Order>2</Order>
                     <PartitionID>2</PartitionID>
                  </ModifyPartition>
               </ModifyPartitions>
            </Disk>
         </DiskConfiguration>
         <ImageInstall>
            <OSImage>
               <InstallTo>
                  <DiskID>0</DiskID>
                  <PartitionID>2</PartitionID>
               </InstallTo>
               <WillShowUI>OnError</WillShowUI>
               <InstallToAvailablePartition>false</InstallToAvailablePartition>
            </OSImage>
         </ImageInstall>
         <UserData>
            <AcceptEula>false</AcceptEula>
            <FullName>User</FullName>
            <Organization />
         </UserData>
         <EnableFirewall>true</EnableFirewall>
      </component>
   </settings>
   <settings pass="generalize">
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Security-SPP" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <SkipRearm>1</SkipRearm>
      </component>
   </settings>
   <settings pass="generalize">
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <SkipRearm>1</SkipRearm>
      </component>
   </settings>
   <settings pass="specialize">
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <SkipAutoActivation>true</SkipAutoActivation>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <SkipAutoActivation>true</SkipAutoActivation>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <ComputerName>-PC</ComputerName>
         <ProductKey>----</ProductKey>
         <TimeZone>E. South America Standard Time</TimeZone>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <ComputerName>-PC</ComputerName>
         <ProductKey>----</ProductKey>
         <TimeZone>E. South America Standard Time</TimeZone>
      </component>
   </settings>
   <settings pass="oobeSystem">
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <InputLocale>66582:00010416</InputLocale>
         <UILanguage>pt-BR</UILanguage>
         <UserLocale>pt-BR</UserLocale>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <InputLocale>66582:00010416</InputLocale>
         <UILanguage>pt-BR</UILanguage>
         <UserLocale>pt-BR</UserLocale>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <RegisteredOwner>User</RegisteredOwner>
         <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <NetworkLocation>Other</NetworkLocation>
            <ProtectYourPC>1</ProtectYourPC>
            <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
            <SkipMachineOOBE>true</SkipMachineOOBE>
            <SkipUserOOBE>true</SkipUserOOBE>
         </OOBE>
         <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
         <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
               <RequiresUserInput>false</RequiresUserInput>
               <Order>1</Order>
               <Description>Disable Auto Updates</Description>
               <CommandLine>reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 3 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
               <Description>Control Panel View</Description>
               <Order>2</Order>
               <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 0 /f</CommandLine>
               <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
               <Order>3</Order>
               <Description>Control Panel Icon Size</Description>
               <RequiresUserInput>false</RequiresUserInput>
               <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
            </SynchronousCommand>
         </FirstLogonCommands>
         <AutoLogon>
            <Password>
               <Value />
               <PlainText>true</PlainText>
            </Password>
            <Enabled>true</Enabled>
            <Username>User</Username>
         </AutoLogon>
         <UserAccounts>
            <LocalAccounts>
               <LocalAccount wcm:action="add">
                  <Password>
                     <Value />
                     <PlainText>true</PlainText>
                  </Password>
                  <Description />
                  <DisplayName>User</DisplayName>
                  <Group>Administrators</Group>
                  <Name>User</Name>
               </LocalAccount>
            </LocalAccounts>
         </UserAccounts>
      </component>
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <RegisteredOwner>User</RegisteredOwner>
         <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <NetworkLocation>Other</NetworkLocation>
            <ProtectYourPC>1</ProtectYourPC>
            <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE>
            <SkipMachineOOBE>true</SkipMachineOOBE>
            <SkipUserOOBE>true</SkipUserOOBE>
         </OOBE>
         <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
         <FirstLogonCommands>
            <SynchronousCommand wcm:action="add">
               <RequiresUserInput>false</RequiresUserInput>
               <Order>1</Order>
               <Description>Disable Auto Updates</Description>
               <CommandLine>reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 3 /f</CommandLine>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
               <Description>Control Panel View</Description>
               <Order>2</Order>
               <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 0 /f</CommandLine>
               <RequiresUserInput>true</RequiresUserInput>
            </SynchronousCommand>
            <SynchronousCommand wcm:action="add">
               <Order>3</Order>
               <Description>Control Panel Icon Size</Description>
               <RequiresUserInput>false</RequiresUserInput>
               <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 0 /f</CommandLine>
            </SynchronousCommand>
         </FirstLogonCommands>
         <AutoLogon>
            <Password>
               <Value />
               <PlainText>true</PlainText>
            </Password>
            <Enabled>true</Enabled>
            <Username>User</Username>
         </AutoLogon>
         <UserAccounts>
            <LocalAccounts>
               <LocalAccount wcm:action="add">
                  <Password>
                     <Value />
                     <PlainText>true</PlainText>
                  </Password>
                  <Description />
                  <DisplayName>User</DisplayName>
                  <Group>Administrators</Group>
                  <Name>User</Name>
               </LocalAccount>
            </LocalAccounts>
         </UserAccounts>
      </component>
   </settings>
   <settings pass="offlineServicing">
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-LUA-Settings" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <EnableLUA>true</EnableLUA>
      </component>
   </settings>
   <settings pass="offlineServicing">
      <component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
         <EnableLUA>true</EnableLUA>
      </component>
   </settings>
</unattend>

Jika Anda memposting beberapa kesalahan yang Anda dapatkan menggunakan file jawaban, dan mungkin file jawaban itu sendiri, sebagai edit untuk pertanyaan Anda, kami akan memiliki ide yang lebih baik bagaimana membantu.
music2myear

@ music2myear, saya menambahkan file xml yang Anda sarankan. Sayangnya saya tidak dapat memulihkan kesalahan yang tepat, karena gambar dimulai ulang secara otomatis dan melanjutkan dengan hanya menampilkan pesan seperti "instalasi tidak dapat melanjutkan".
Gabriel L. P. Abreu

Apakah itu keseluruhan pesan? Anda bisa mengambil gambar kesalahan saat muncul dan sebelum sistem restart. Juga, apakah ini dalam installer Windows "normal" atau ini dalam lingkungan WinPE berdasarkan pada instalasi MDT atau SCCM? Jika ini adalah instalasi berbasis MDT atau SCCM WinPE, mungkin ada file log yang dapat Anda akses.
music2myear
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.