Configure VDA for Windows subscription activation
Applies to:
- Windows 10
- Windows 11
This document describes how to configure virtual machines (VMs) to enable Windows subscription activation in a Windows Virtual Desktop Access (VDA) scenario. Windows VDA is a device or user-based licensing mechanism for managing access to virtual desktops.
Deployment instructions are provided for the following scenarios:
Requirements
- VMs must be running a supported version of Windows Pro edition.
- VMs must be joined to Active Directory or Microsoft Entra ID.
- VMs must be hosted by a Qualified Multitenant Hoster (QMTH).
Activation
Scenario 1
The VM is running a supported version of Windows.
The VM is hosted in Azure, an authorized outsourcer, or another Qualified Multitenant Hoster (QMTH).
When a user with VDA rights signs in to the VM using their Microsoft Entra credentials, the VM is automatically stepped-up to Enterprise and activated. There's no need to do Windows Pro activation. This functionality eliminates the need to maintain KMS or MAK in the qualifying cloud infrastructure.
Scenario 2
The Hyper-V host and the VM are both running a supported version of Windows.
Inherited Activation is enabled. All VMs created by a user with a Windows E3 or E5 license are automatically activated independent of whether a user signs in with a local account or using a Microsoft Entra account.
Scenario 3
The hoster isn't an authorized QMTH partner.
In this scenario, the underlying Windows Pro license must be activated prior to using subscription activation Windows Enterprise. Activation is accomplished using a generic volume license key (GVLK) and a volume license KMS activation server provided by the hoster. Alternatively, a KMS activation server can be used. KMS activation is provided for Azure VMs. For more information, see Troubleshoot Azure Windows virtual machine activation problems.
For examples of activation issues, see Troubleshoot the user experience.
Active Directory-joined VMs
Use the following instructions to prepare the VM for Azure: Prepare a Windows VHD or VHDX to upload to Azure
(Optional) To disable network level authentication, enter the following command at an elevated command prompt:
REG.exe ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
At an elevated command prompt, enter sysdm.cpl.
On the Remote tab, choose Allow remote connections to this computer and then select Select Users.
Select Add, enter Authenticated users, and then select OK three times.
Follow the instructions to use sysprep at Steps to generalize a VHD and then start the VM again.
If you must activate Windows Pro as described for scenario 3, complete the following steps to use Windows Configuration Designer and inject an activation key. Otherwise, skip to step 8.
Open Windows Configuration Designer and select Provision desktop services.
Under Name, enter Desktop AD Enrollment Pro GVLK, select Finish, and then on the Set up device page enter a device name.
Note
You can use a different project name, but this name is also used with dism.exe in a later step.
Under Enter product key enter the Pro GVLK key:
W269N-WFGWX-YVC9B-4J6C9-T83GX
.On the Set up network page, choose Off.
On the Account Management page, choose Enroll into Active Directory and then enter the account details.
Note
This step is different for Microsoft Entra joined VMs.
On the Add applications page, add applications if desired. This step is optional.
On the Add certificates page, add certificates if desired. This step is optional.
On the Finish page, select Create.
In file explorer, open the VHD to mount the disk image. Determine the drive letter of the mounted image.
Enter the following command at an elevated command prompt. Replace the letter
G
with the drive letter of the mounted image, and enter the project name you used if it's different than the one suggested:Dism.exe /Image=G:\ /Add-ProvisioningPackage /PackagePath: "Desktop AD Enrollment Pro GVLK.ppkg"
Right-click the mounted image in file explorer and select Eject.
See the instructions at Upload and create VM from generalized VHD to sign in to Azure, get your storage account details, upload the VHD, and create a managed image.
Microsoft Entra joined VMs
Important
Microsoft Entra provisioning packages have a 180 day limit on bulk token usage. After 180 days, you'll need to update the provisioning package and re-inject it into the image. Existing virtual machines that are Microsoft Entra joined and deployed won't need to be recreated.
For Microsoft Entra joined VMs, follow the same instructions as for Active Directory-joined VMs with the following exceptions:
During setup with Windows Configuration Designer, under Name, enter a name for the project that indicates it isn't for Active Directory-joined VMs, such as Desktop Bulk Enrollment Token Pro GVLK.
During setup with Windows Configuration Designer, on the Account Management page, instead of enrolling in Active Directory, choose Enroll in Microsoft Entra ID, select Get Bulk Token, sign in, and add the bulk token using your organization's credentials.
When entering the PackagePath, use the project name you previously entered. For example, Desktop Bulk Enrollment Token Pro GVLK.ppkg
When attempting to access the VM using remote desktop, you'll need to create a custom RDP settings file as described below in Create custom RDP settings for Azure.
Azure Gallery VMs
(Optional) To disable network level authentication, enter the following command at an elevated command prompt:
REG.exe ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f
At an elevated command prompt, enter
sysdm.cpl
.On the Remote tab, choose Allow remote connections to this computer and then select Select Users.
Select Add, enter Authenticated users, and then select OK three times.
Open Windows Configuration Designer and select Provision desktop services.
If you must activate Windows Pro as described for scenario 3, complete the following steps. Otherwise, skip to step 8.
Under Name, enter Desktop Bulk Enrollment Token Pro GVLK, select Finish, and then on the Set up device page enter a device name.
Under Enter product key enter the Pro GVLK key:
W269N-WFGWX-YVC9B-4J6C9-T83GX
.
Under Name, enter Desktop Bulk Enrollment, select Finish, and then on the Set up device page enter a device name.
On the Set up network page, choose Off.
On the Account Management page, choose Enroll in Microsoft Entra ID, select Get Bulk Token, sign in, and add the bulk token using your organizations credentials.
On the Add applications page, add applications if desired. This step is optional.
On the Add certificates page, add certificates if desired. This step is optional.
On the Finish page, select Create.
Copy the PPKG file to the remote virtual machine. Open the provisioning package to install it. This process will restart the system.
Note
When you try to access the VM using remote desktop, you'll need to create a custom RDP settings file.
Create custom RDP settings for Azure
Open Remote Desktop Connection and enter the IP address or DNS name for the remote host.
Select Show Options, and then under Connection settings select Save As. Save the RDP file to the location where you'll use it.
Close the Remote Desktop Connection window and open Notepad.
Open the RDP file in Notepad to edit it.
Enter or replace the line that specifies authentication level with the following two lines of text:
enablecredsspsupport:i:0 authentication level:i:2
The values
enablecredsspsupport
andauthentication level
should each appear only once in the file.Save your changes, and then use this custom RDP file with your Microsoft Entra credentials to connect to the Azure VM.
Related articles
Windows subscription activation
Recommended settings for VDI desktops
Whitepaper on licensing the Windows desktop for VDI environments