MDT - Server 2022 stopp sat Product Key

C.Huss 25 Reputation points
2023-07-24T07:48:47.6766667+00:00

Hey, I am installing Server 2022 via MDT. But it keeps stopping at the product key. How to skip it or how to parse a generic key ?

I tried in rules:

[W2022]

ProductKey=N2KJX-J94YW-TQVFB-DG9YT-724CC

But it still asks for the product key.

I also tried to edit the unattend.xml which does not work either...

<settings pass="specialize">

</component>

<ProductKey>N2KJX-J94YW-TQVFB-DG9YT-724CC</ProductKey>

</component>

Chris

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

3 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,316 Reputation points Microsoft External Staff
    2023-07-24T09:04:32.15+00:00

    Hi,

    To skip the product key during Server 2022 installation via MDT, you need to set the SkipProductKey property to YES in the CustomSettings.ini file. Here's an example of how to add it:

    [Default]
    SkipProductKey=YES
    

    Alternatively, you can set a generic product key in the configuration pass for Windows Setup (WindowsPE or specialize). Here's an example of how to add it in WindowsPE:

    [WindowsPE]
    [Unattended]
    ProductKey=N2KJX-J94YW-TQVFB-DG9YT-724CC
    

    If you have already tried to edit the Unattend.xml file and it didn't work, double-check that the file is in the correct location and that MDT is using the updated file. You may also want to verify that the edition of Server 2022 you are trying to install matches the product key you are using, as some editions have different product keys.

    1 person found this answer helpful.
    0 comments No comments

  2. C.Huss 25 Reputation points
    2023-08-10T08:33:20.8933333+00:00

    Hey, sorry for the late answer.. I tried several settings but with no success.

    When I enter the product key manually during the setup if will go on - so the key is valid for my install media.

    [Default] SkipProductKey=YES --> no effect for Server 2022

          <settings pass="windowsPE"> .....
              <UserData>
                    <AcceptEula>true</AcceptEula>
                    <ProductKey>
                        <Key>VDYBN-27WPP-V4HQT-9VMD4-VMK7H</Key>
                    </ProductKey>
    
    <component name="Microsoft-Windows-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">             
    		<UserData>                 
    			<ProductKey>                     
    				<Key>VDYBN-27WPP-V4HQT-9VMD4-VMK7H</Key>                 
    			</ProductKey>             
    		</UserData>         
    </component>
    

    productkeySrv2022_1

    0 comments No comments

  3. C.Huss 25 Reputation points
    2023-09-15T04:31:39.8033333+00:00

    Hey, I wasn´t aware that the content of the brackets is the task sequence ID - so I named the the part in the rules as the tasksequenceID [WINSRV2022] and it worked. Thanks a lot.

    [WINSRV2022]
    SkipProductKey=YES
    ProductKey=VDYBN-27WPP-V4HQT-9VMD4-VMK7H

    Christian

    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.