When you install Windows 10 or 11 on a custom-built PC or a new PC without Windows pre-installed, users have the option to install the specific edition of Windows that matches the license key they have purchased(eg Windows Home, Pro, Education, etc.).

Windows 11 Edition

However, on pre-installed Windows 10/11 PCs, users are not given the option to select a different edition during installation. The reason is that these PCs come with a Windows license key embedded in the BIOS/UEFI firmware, which the installer automatically detects. As a result, Windows installs the edition that matches the embedded key, without prompting the user to choose.

In this tutorial you will learn how to be able to install a different version of Windows than the one that is preinstalled.

Step 1: Create a Windows 10/11 USB Installation media.

For instructions, see this article: How to create a bootable Windows 10/11 USB installation media.

Step 2: Add an ei.cfg file to your installation media

The ei.cfg file tells the Windows installer not to use the product key embedded in the BIOS/UEFI, allowing you to manually select the Windows edition during setup.

Open Notepad and then copy and paste the following lines:

[EditionID]
Professional
[Channel]
Retail

Here's a list of common Windows EditionID values that are used in ei.cfg files:

Windows 10 Editions

Edition Name EditionID
Windows 10 HomeCore
Windows 10 Home NCoreN
Windows 10 Home Single LanguageCoreSingleLanguage
Windows 10 ProProfessional
Windows 10 Pro NProfessionalN
Windows 10 EducationEducation
Windows 10 Education NEducationN
Windows 10 EnterpriseEnterprise
Windows 10 Enterprise NEnterpriseN
Windows 10 Pro EducationProfessionalEducation
Windows 10 Pro for WorkstationsProfessionalWorkstation
Windows 10 Pro N for WorkstationsProfessionalWorkstationN

Windows 11 Editions

Edition Name EditionID
Windows 11 HomeCore
Windows 11 Home NCoreN
Windows 11 Home Single LanguageCoreSingleLanguage
Windows 11 ProProfessional
Windows 11 Pro NProfessionalN
Windows 11 EducationEducation
Windows 11 Education NEducationN
Windows 11 EnterpriseEnterprise
Windows 11 Enterprise NEnterpriseN
Windows 11 Pro EducationProfessionalEducation
Windows 11 Pro for WorkstationsProfessionalWorkstation
Windows 11 Pro N for WorkstationsProfessionalWorkstationN

When you're finished creating the configuration file, go to the File menu and choose Save As. In the save dialog that appears, navigate to the Windows USB installation media on the left-hand panel. Once there, open the sources folder on the right side.

In the File name field, type "ei.cfg" — make sure to include the quotation marks exactly as shown. This ensures the file is saved with the correct .cfg extension and not accidentally as a .txt file. Finally, click Save to complete the process.

Step 3: Add an PID.txt file to your installation media

The PID.txt file tells the Windows installer which product key to use during installation. If your system has a pre-installed OEM key embedded in the BIOS/UEFI (such as for Windows 11 Home), and you want to install a different edition like Windows 11 Pro, including a PID.txt file with a valid Pro product key will override the embedded key and force the installer to proceed with the Pro edition.

Open Notepad and then copy and paste the following lines:

[PID]
value=VK7JG-NPHTM-C97JM-9MPGT-3V66T

The PID value can be either a generic key or a KMS client key, depending on what you're trying to do.

Generic Keys are default product keys provided by Microsoft that can be used to install and test Windows operating systems without activating them. These keys do not activate Windows, but allow you to complete the installation process.

KMS Client Keys are special product keys provided by Microsoft that allow Windows computers to be activated via a Key Management Service (KMS). Instead of activating each PC individually via the internet, computers activate locally by talking to a KMS server inside the company network. This allows organizations to manage activations centrally for many machines.

Here's a list of common Generic Keys values that can be used in PID.txt files:

Windows 10 Editions

Edition Name Generic Key
Windows 10 HomeYTMG3-N6DKC-DKB77-7M9GH-8HVX7
Windows 10 Home N4CPRK-NM3K3-X6XXQ-RXX86-WXCHW
Windows 10 Home Single LanguageBT79Q-G7N6G-PGBYW-4YWX6-6F4BT
Windows 10 ProVK7JG-NPHTM-C97JM-9MPGT-3V66T
Windows 10 Pro N2B87N-8KFHP-DKV6R-Y2C8J-PKCKT
Windows 10 Pro for WorkstationsDXG7C-N36C4-C4HTG-X4T3X-2YV77
Windows 10 Pro N for WorkstationsWYPNQ-8C467-V2W6J-TX4WX-WT2RQ
Windows 10 S3NF4D-GF9GY-63VKH-QRC3V-7QW8P
Windows 10 EducationYNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY
Windows 10 Education N84NGF-MHBT6-FXBX8-QWJK7-DRR8H
Windows 10 Pro Education8PTT6-RNW4C-6V7J2-C2D3X-MHBPB
Windows 10 Pro Education NGJTYN-HDMQY-FRR76-HVGC7-QPF8P
Windows 10 EnterpriseXGVPP-NMH47-7TTHJ-W3FW7-8HV2C
Windows 10 Enterprise G NFW7NV-4T673-HF4VX-9X4MM-B4H4T
Windows 10 Enterprise NWGGHN-J84D6-QYCPR-T7PJ7-X766F
Windows 10 Enterprise SNK96Y-D9CD8-W44CQ-R8YTK-DYJWX

Windows 11 Editions

Edition Name Generic Key
Windows 11 HomeYTMG3-N6DKC-DKB77-7M9GH-8HVX7
Windows 11 Home N4CPRK-NM3K3-X6XXQ-RXX86-WXCHW
Windows 11 Home Single LanguageBT79Q-G7N6G-PGBYW-4YWX6-6F4BT
Windows 11 Home Country SpecificN2434-X9D7W-8PF6X-8DV9T-8TYMD
Windows 11 ProVK7JG-NPHTM-C97JM-9MPGT-3V66T
Windows 11 Pro N2B87N-8KFHP-DKV6R-Y2C8J-PKCKT
Windows 11 Pro for WorkstationsDXG7C-N36C4-C4HTG-X4T3X-2YV77
Windows 11 Pro for Workstations NWYPNQ-8C467-V2W6J-TX4WX-WT2RQ
Windows 11 Pro Education8PTT6-RNW4C-6V7J2-C2D3X-MHBPB
Windows 11 Pro Education NGJTYN-HDMQY-FRR76-HVGC7-QPF8P
Windows 11 EducationYNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY
Windows 11 Education N84NGF-MHBT6-FXBX8-QWJK7-DRR8H
Windows 11 EnterpriseXGVPP-NMH47-7TTHJ-W3FW7-8HV2C
Windows 11 Enterprise NWGGHN-J84D6-QYCPR-T7PJ7-X766F
Windows 11 Enterprise G NFW7NV-4T673-HF4VX-9X4MM-B4H4T

When you're finished creating the PID file, go to the File menu and choose Save As. In the save dialog that appears, navigate to the Windows USB installation media on the left-hand panel. Once there, open the sources folder on the right side.

In the File name field, type "PID.txt" — make sure to include the quotation marks exactly as shown. This ensures the file is saved with the correct .txt extension and not accidentally as a .txt.txt file. Finally, click Save to complete the process.

After setting up the ei.cfg and PID.txt files correctly in the sources folder of your USB installation media, boot your PC from the USB. During the clean installation process, you will now be able to choose the edition of Windows 11 or Windows 10 that you want to install.