Advertisement
Guest User

unattend

a guest
Oct 9th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 11.01 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <unattend xmlns="urn:schemas-microsoft-com:unattend">
  3.     <settings pass="windowsPE">
  4.         <component name="Microsoft-Windows-International-Core-WinPE" 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">
  5.             <SetupUILanguage>
  6.                 <UILanguage>en-US</UILanguage>
  7.             </SetupUILanguage>
  8.             <UILanguage>en-US</UILanguage>
  9.             <InputLocale>0409:00000409</InputLocale>
  10.             <SystemLocale>en-US</SystemLocale>
  11.             <UserLocale>en-US</UserLocale>
  12.         </component>
  13.         <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">
  14.             <ComplianceCheck>
  15.                 <DisplayReport>OnError</DisplayReport>
  16.             </ComplianceCheck>
  17.             <ImageInstall>
  18.                 <OSImage>
  19.                     <InstallFrom>
  20.                         <MetaData wcm:action="add">
  21.                             <Value>1</Value>
  22.                             <Key>/IMAGE/INDEX</Key>
  23.                         </MetaData>
  24.                         <Path>\\10.118.192.1\osd$\Operating Systems\W2019\sources\install.wim</Path>
  25.                     </InstallFrom>
  26.                     <InstallTo>
  27.                         <DiskID>0</DiskID>
  28.                         <PartitionID>2</PartitionID>
  29.                     </InstallTo>
  30.                     <WillShowUI>OnError</WillShowUI>
  31.                 </OSImage>
  32.             </ImageInstall>
  33.             <UserData>
  34.                 <AcceptEula>true</AcceptEula>
  35.                 <FullName>companyname</FullName>
  36.                 <Organization>companyname</Organization>
  37.                 <ProductKey>
  38.                     <Key>prod key</Key>
  39.                     <WillShowUI>Never</WillShowUI>
  40.                 </ProductKey>
  41.             </UserData>
  42.         </component>
  43.     </settings>
  44.     <settings pass="offlineServicing">
  45.         <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
  46.             <DriverPaths>
  47.                 <PathAndCredentials wcm:action="add" wcm:keyValue="1">
  48.                     <Path>\Drivers</Path>
  49.                 </PathAndCredentials>
  50.             </DriverPaths>
  51.         </component>
  52.     </settings>
  53.     <settings pass="generalize">
  54.         <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">
  55.             <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
  56.             <RegisteredOwner>companyname</RegisteredOwner>
  57.             <RegisteredOrganization>companyname</RegisteredOrganization>
  58.             <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
  59.         </component>
  60.     </settings>
  61.     <settings pass="specialize">
  62.         <component name="Microsoft-Windows-Deployment" 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">
  63.             <RunSynchronous>
  64.                 <RunSynchronousCommand wcm:action="add">
  65.                     <Description>Call Script C:\Windows\Setup\Scripts\Specialize.cmd</Description>
  66.                     <Path>cmd /c C:\Windows\Setup\Scripts\Specialize.cmd</Path>
  67.                     <Order>1</Order>
  68.                 </RunSynchronousCommand>
  69.             </RunSynchronous>
  70.         </component>
  71.         <component name="Microsoft-Windows-DNS-Client" 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">
  72.             <DNSSuffixSearchOrder>
  73.                 <DomainName wcm:action="add" wcm:keyValue="1">ag1.companyname.local</DomainName>
  74.                 <DomainName wcm:action="add" wcm:keyValue="3">companyname.local</DomainName>
  75.                 <DomainName wcm:action="add" wcm:keyValue="2">ag2.companyname.local</DomainName>
  76.                 <DomainName wcm:action="add" wcm:keyValue="5">companynamedev.io</DomainName>
  77.                 <DomainName wcm:action="add" wcm:keyValue="4">hkg.companyname.local</DomainName>
  78.             </DNSSuffixSearchOrder>
  79.             <DNSDomain>companyname.local</DNSDomain>
  80.         </component>
  81.         <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">
  82.             <InputLocale>en-us;0409:00000409</InputLocale>
  83.             <SystemLocale>en-us</SystemLocale>
  84.             <UILanguage>en-us</UILanguage>
  85.             <UserLocale>en-us</UserLocale>
  86.         </component>
  87.         <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">
  88.             <ComputerName>!COMPUTERNAME!</ComputerName>
  89.             <DisableAutoDaylightTimeSet>true</DisableAutoDaylightTimeSet>
  90.             <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
  91.             <EnableStartMenu>true</EnableStartMenu>
  92.             <RegisteredOrganization>companyname</RegisteredOrganization>
  93.             <RegisteredOwner>companyname</RegisteredOwner>
  94.             <TimeZone>SE Asia Standard Time</TimeZone>
  95.             <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
  96.         </component>
  97.         <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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">
  98.             <fDenyTSConnections>false</fDenyTSConnections>
  99.         </component>
  100.         <component name="Networking-MPSSVC-Svc" 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">
  101.             <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>
  102.             <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall>
  103.             <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall>
  104.         </component>
  105.     </settings>
  106.     <settings pass="oobeSystem">
  107.         <component name="Microsoft-Windows-International-Core" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  108.             <InputLocale>en-us;0409:00000409</InputLocale>
  109.             <SystemLocale>en-us</SystemLocale>
  110.             <UILanguage>en-us</UILanguage>
  111.             <UserLocale>en-us</UserLocale>
  112.         </component>
  113.         <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  114.             <AutoLogon>
  115.                 <Password>
  116.                     <Value>pw</Value>
  117.                     <PlainText>false</PlainText>
  118.                 </Password>
  119.                 <Domain>-</Domain>
  120.                 <Enabled>true</Enabled>
  121.                 <LogonCount>1</LogonCount>
  122.                 <Username>Administrator</Username>
  123.             </AutoLogon>
  124.             <FirstLogonCommands>
  125.                 <SynchronousCommand wcm:action="add">
  126.                     <CommandLine>powershell -executionpolicy unrestricted -command &quot;Set-ExecutionPolicy Unrestricted -Force&quot;</CommandLine>
  127.                     <Description>Unrestricted PowerShell ExecutionPolicy</Description>
  128.                     <Order>1</Order>
  129.                     <RequiresUserInput>false</RequiresUserInput>
  130.                 </SynchronousCommand>
  131.                 <SynchronousCommand wcm:action="add">
  132.                     <CommandLine>start &quot;Admin CMD Console&quot; /min cmd /k /q &quot;ECHO ==================[THIS IS ADMIN CMD FOR TROUBLESHOOTING]==================&quot;</CommandLine>
  133.                     <Description>FirstLogonCommands start admin CMD for troubleshooting during oobeSytem Configuration Passes (Windows Welcome)</Description>
  134.                     <Order>2</Order>
  135.                     <RequiresUserInput>false</RequiresUserInput>
  136.                 </SynchronousCommand>
  137.             </FirstLogonCommands>
  138.             <OOBE>
  139.                 <HideEULAPage>true</HideEULAPage>
  140.                 <HideLocalAccountScreen>true</HideLocalAccountScreen>
  141.                 <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
  142.                 <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
  143.                 <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
  144.                 <ProtectYourPC>1</ProtectYourPC>
  145.                 <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
  146.             </OOBE>
  147.             <UserAccounts>
  148.                 <AdministratorPassword>
  149.                     <Value>pw</Value>
  150.                     <PlainText>false</PlainText>
  151.                 </AdministratorPassword>
  152.                 <LocalAccounts>
  153.                     <LocalAccount wcm:action="add">
  154.                         <Password>
  155.                             <Value>pw</Value>
  156.                             <PlainText>false</PlainText>
  157.                         </Password>
  158.                         <Description>Local Service Account Automation Tasks</Description>
  159.                         <DisplayName>Automate</DisplayName>
  160.                         <Group>Administrators</Group>
  161.                         <Name>Automate</Name>
  162.                     </LocalAccount>
  163.                 </LocalAccounts>
  164.             </UserAccounts>
  165.             <RegisteredOrganization>companyname</RegisteredOrganization>
  166.             <RegisteredOwner>companyname</RegisteredOwner>
  167.             <TimeZone>SE Asia Standard Time</TimeZone>
  168.         </component>
  169.     </settings>
  170.     <cpi:offlineImage cpi:source="wim://servername/osd$/captures/win2019driversgui.wim#Win2019 Standard Server" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
  171. </unattend>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement