Advertisement
Gamma-577

autounattend.xml

Oct 24th, 2024
1,002
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.03 KB | Source Code | 0 0
  1.     <?xml version="1.0" encoding="utf-8"?>
  2.     <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
  3.         <settings pass="offlineServicing"></settings>
  4.         <settings pass="windowsPE">
  5.             <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="arm64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
  6.                 <SetupUILanguage>
  7.                     <UILanguage>en-US</UILanguage>
  8.                 </SetupUILanguage>
  9.                 <InputLocale>0809:00000809</InputLocale>
  10.                 <SystemLocale>en-GB</SystemLocale>
  11.                 <UILanguage>en-US</UILanguage>
  12.                 <UserLocale>en-GB</UserLocale>
  13.             </component>
  14.             <component name="Microsoft-Windows-Setup" processorArchitecture="arm64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
  15.                 <ImageInstall>
  16.                     <OSImage>
  17.                         <InstallTo>
  18.                             <DiskID>0</DiskID>
  19.                             <PartitionID>3</PartitionID>
  20.                         </InstallTo>
  21.                     </OSImage>
  22.                 </ImageInstall>
  23.                 <UserData>
  24.                     <ProductKey>
  25.                         <Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
  26.                     </ProductKey>
  27.                     <AcceptEula>true</AcceptEula>
  28.                 </UserData>
  29.                 <RunSynchronous>
  30.                     <RunSynchronousCommand wcm:action="add">
  31.                         <Order>1</Order>
  32.                         <Path>cmd.exe /c echo SELECT DISK=0 &gt;&gt; X:\diskpart.txt</Path>
  33.                     </RunSynchronousCommand>
  34.                     <RunSynchronousCommand wcm:action="add">
  35.                         <Order>2</Order>
  36.                         <Path>cmd.exe /c echo CLEAN &gt;&gt; X:\diskpart.txt</Path>
  37.                     </RunSynchronousCommand>
  38.                     <RunSynchronousCommand wcm:action="add">
  39.                         <Order>3</Order>
  40.                         <Path>cmd.exe /c echo CONVERT GPT &gt;&gt; X:\diskpart.txt</Path>
  41.                     </RunSynchronousCommand>
  42.                     <RunSynchronousCommand wcm:action="add">
  43.                         <Order>4</Order>
  44.                         <Path>cmd.exe /c echo CREATE PARTITION EFI SIZE=256 &gt;&gt; X:\diskpart.txt</Path>
  45.                     </RunSynchronousCommand>
  46.                     <RunSynchronousCommand wcm:action="add">
  47.                         <Order>5</Order>
  48.                         <Path>cmd.exe /c echo FORMAT QUICK FS=FAT32 LABEL="System" &gt;&gt; X:\diskpart.txt</Path>
  49.                     </RunSynchronousCommand>
  50.                     <RunSynchronousCommand wcm:action="add">
  51.                         <Order>6</Order>
  52.                         <Path>cmd.exe /c echo CREATE PARTITION MSR SIZE=128 &gt;&gt; X:\diskpart.txt</Path>
  53.                     </RunSynchronousCommand>
  54.                     <RunSynchronousCommand wcm:action="add">
  55.                         <Order>7</Order>
  56.                         <Path>cmd.exe /c echo CREATE PARTITION PRIMARY &gt;&gt; X:\diskpart.txt</Path>
  57.                     </RunSynchronousCommand>
  58.                     <RunSynchronousCommand wcm:action="add">
  59.                         <Order>8</Order>
  60.                         <Path>cmd.exe /c echo SHRINK MINIMUM=1024 &gt;&gt; X:\diskpart.txt</Path>
  61.                     </RunSynchronousCommand>
  62.                     <RunSynchronousCommand wcm:action="add">
  63.                         <Order>9</Order>
  64.                         <Path>cmd.exe /c echo FORMAT QUICK FS=NTFS LABEL="Win11ProArm" &gt;&gt; X:\diskpart.txt</Path>
  65.                     </RunSynchronousCommand>
  66.                     <RunSynchronousCommand wcm:action="add">
  67.                         <Order>10</Order>
  68.                         <Path>cmd.exe /c echo CREATE PARTITION PRIMARY &gt;&gt; X:\diskpart.txt</Path>
  69.                     </RunSynchronousCommand>
  70.                     <RunSynchronousCommand wcm:action="add">
  71.                         <Order>11</Order>
  72.                         <Path>cmd.exe /c echo FORMAT QUICK FS=NTFS LABEL="Recovery" &gt;&gt; X:\diskpart.txt</Path>
  73.                     </RunSynchronousCommand>
  74.                     <RunSynchronousCommand wcm:action="add">
  75.                         <Order>12</Order>
  76.                         <Path>cmd.exe /c echo SET ID="de94bba4-06d1-4d40-a16a-bfd50179d6ac" &gt;&gt; X:\diskpart.txt</Path>
  77.                     </RunSynchronousCommand>
  78.                     <RunSynchronousCommand wcm:action="add">
  79.                         <Order>13</Order>
  80.                         <Path>cmd.exe /c echo GPT ATTRIBUTES=0x8000000000000001 &gt;&gt; X:\diskpart.txt</Path>
  81.                     </RunSynchronousCommand>
  82.                     <RunSynchronousCommand wcm:action="add">
  83.                         <Order>14</Order>
  84.                         <Path>cmd.exe /c diskpart /s X:\diskpart.txt &gt;&gt; X:\diskpart.log</Path>
  85.                     </RunSynchronousCommand>
  86.                 </RunSynchronous>
  87.             </component>
  88.         </settings>
  89.         <settings pass="generalize"></settings>
  90.         <settings pass="specialize"></settings>
  91.         <settings pass="auditSystem"></settings>
  92.         <settings pass="auditUser"></settings>
  93.         <settings pass="oobeSystem">
  94.             <component name="Microsoft-Windows-International-Core" processorArchitecture="arm64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
  95.                 <InputLocale>0809:00000809</InputLocale>
  96.                 <SystemLocale>en-GB</SystemLocale>
  97.                 <UILanguage>en-US</UILanguage>
  98.                 <UserLocale>en-GB</UserLocale>
  99.             </component>
  100.             <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="arm64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
  101.                 <UserAccounts>
  102.                     <AdministratorPassword>
  103.                         <Value>password1</Value>
  104.                         <PlainText>true</PlainText>
  105.                     </AdministratorPassword>
  106.                     <LocalAccounts>
  107.                         <LocalAccount wcm:action="add">
  108.                             <Name>ArmNinja</Name>
  109.                             <Group>Administrators</Group>
  110.                             <Password>
  111.                                 <Value>password2</Value>
  112.                                 <PlainText>true</PlainText>
  113.                             </Password>
  114.                         </LocalAccount>
  115.                         <LocalAccount wcm:action="add">
  116.                             <Name>Superman</Name>
  117.                             <Group>Administrators</Group>
  118.                             <Password>
  119.                                 <Value>password3</Value>
  120.                                 <PlainText>true</PlainText>
  121.                             </Password>
  122.                         </LocalAccount>
  123.                     </LocalAccounts>
  124.                 </UserAccounts>
  125.                 <AutoLogon>
  126.                     <Username>Administrator</Username>
  127.                     <Enabled>true</Enabled>
  128.                     <LogonCount>1</LogonCount>
  129.                     <Password>
  130.                         <Value>password</Value>
  131.                         <PlainText>true</PlainText>
  132.                     </Password>
  133.                 </AutoLogon>
  134.                 <OOBE>
  135.                     <ProtectYourPC>3</ProtectYourPC>
  136.                     <HideEULAPage>true</HideEULAPage>
  137.                     <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
  138.                 </OOBE>
  139.             </component>
  140.         </settings>
  141.     </unattend>
  142.  
Tags: autounattend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement