Give example of "Microsoft Windows 2025 upgrade" example response file

SysOpsEvisions-2656 0 Reputation points
2025-08-01T04:38:02.0933333+00:00

Give example of "Microsoft Windows 2025 upgrade" example response file for setup.exe to use

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Joseph Tran 1,400 Reputation points Independent Advisor
    2025-08-05T07:15:30.5566667+00:00

    Hi, I think this is the example of a unattend.xml (Windows Setup answer file) for upgrading to Microsoft Windows 11/Windows 2025 using setup.exe /unattend:<file> that you're expecting to :

    => Example: unattend.xml for an in-place upgrade to Windows 11/2025

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
      <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
          <ImageInstall>
            <OSImage>
              <InstallFrom>
                <MetaData wcm:action="add">
                  <Key>/IMAGE/INDEX</Key>
                  <Value>1</Value>
                </MetaData>
              </InstallFrom>
              <WillShowUI>OnError</WillShowUI>
            </OSImage>
          </ImageInstall>
          <UserData>
            <AcceptEula>true</AcceptEula>
            <FullName>Administrator</FullName>
            <Organization>MyOrganization</Organization>
          </UserData>
        </component>
      </settings>
    
      <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
          <ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey> <!-- Optional -->
          <TimeZone>SE Asia Standard Time</TimeZone>
          <RegisteredOwner>MyUser</RegisteredOwner>
          <RegisteredOrganization>MyOrganization</RegisteredOrganization>
          <ComputerName>*</ComputerName>
        </component>
      </settings>
    
      <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
          <InputLocale>en-US</InputLocale>
          <SystemLocale>en-US</SystemLocale>
          <UILanguage>en-US</UILanguage>
          <UserLocale>en-US</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
          <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
            <NetworkLocation>Work</NetworkLocation>
            <ProtectYourPC>1</ProtectYourPC>
          </OOBE>
          <UserAccounts>
            <AdministratorPassword>
              <Value>P@ssw0rd</Value>
              <PlainText>true</PlainText>
            </AdministratorPassword>
          </UserAccounts>
          <AutoLogon>
            <Password>
              <Value>P@ssw0rd</Value>
              <PlainText>true</PlainText>
            </Password>
            <Enabled>true</Enabled>
            <Username>Administrator</Username>
          </AutoLogon>
        </component>
      </settings>
    
    </unattend>
    

    => How to use with setup.exe

    Save the above as unattend.xml and use the following command:

    setup.exe /auto upgrade /unattend:unattend.xml
    

    **Notes:

    • The <ProductKey> is optional for upgrade if the system already has a valid digital license.
    • This assumes you're upgrading from a supported previous version (e.g., Windows 10/11 to Windows 11 24H2 or 2025).
    • You must match architecture (amd64 for 64-bit), and ensure the XML file is encoded in UTF-8.
    • Replace timezone, locale, name, password, etc., as appropriate.
    • You can also add <Telemetry> or <DynamicUpdate> components if needed.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.