Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Important
This CSP contains some settings that are under development and only applicable for Windows Insider Preview builds. These settings are subject to change and may have dependencies on other features or services in preview.
The WindowsLicensing configuration service provider is designed for licensing related management scenarios.
The following list shows the WindowsLicensing configuration service provider nodes:
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1703 [10.0.15063] and later |
./Vendor/MSFT/WindowsLicensing/ChangeProductKey
Installs a product key for Windows 10 desktop devices. Does not reboot.
Description framework properties:
Property name | Property value |
---|---|
Format | chr (string) |
Access Type | Exec |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1511 [10.0.10586] and later |
./Vendor/MSFT/WindowsLicensing/CheckApplicability
Returns TRUE if the entered product key can be used for an edition upgrade of Windows 10 desktop devices.
Description framework properties:
Property name | Property value |
---|---|
Format | chr (string) |
Access Type | Exec |
Example:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Exec>
<CmdID>$CmdID$</CmdID>
<Item>
<Target>
<LocURI>./Device/Vendor/MSFT/WindowsLicensing/CheckApplicability</LocURI>
</Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
</Meta>
<Data>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Data>
</Item>
</Exec>
<Final/>
</SyncBody>
</SyncML>
Note
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
in the Data tag should be replaced with your product key.
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 11, version 21H2 with KB5018483 [10.0.22000.1165] and later ✅ Windows 11, version 22H2 [10.0.22621] and later |
./Vendor/MSFT/WindowsLicensing/DeviceLicensingService
Device Based Subscription.
Description framework properties:
Property name | Property value |
---|---|
Format | node |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 11, version 21H2 with KB5018483 [10.0.22000.1165] and later ✅ Windows 11, version 22H2 [10.0.22621] and later |
./Vendor/MSFT/WindowsLicensing/DeviceLicensingService/DeviceLicensingLastError
Returns the last error code of Refresh/Remove Device License operation. Value would be empty(0) in absence of error.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 11, version 21H2 with KB5018483 [10.0.22000.1165] and later ✅ Windows 11, version 22H2 [10.0.22621] and later |
./Vendor/MSFT/WindowsLicensing/DeviceLicensingService/DeviceLicensingLastErrorDescription
Returns last error description from Device Licensing. Value would be empty, if error decription can't be evaluated.
Description framework properties:
Property name | Property value |
---|---|
Format | chr (string) |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 11, version 21H2 with KB5018483 [10.0.22000.1165] and later ✅ Windows 11, version 22H2 [10.0.22621] and later |
./Vendor/MSFT/WindowsLicensing/DeviceLicensingService/DeviceLicensingStatus
Returns the status of Refresh/Remove Device License operation.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 11, version 21H2 with KB5018483 [10.0.22000.1165] and later ✅ Windows 11, version 22H2 [10.0.22621] and later |
./Vendor/MSFT/WindowsLicensing/DeviceLicensingService/LicenseType
License Type: User Based Subscription or Device Based Subscription.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get, Replace |
Allowed values:
Value | Description |
---|---|
0 | User Based Subscription. |
1 | Device Based Subscription. |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1511 [10.0.10586] and later |
./Vendor/MSFT/WindowsLicensing/Edition
Returns a value that maps to the Windows 10 edition running on desktop or mobile devices. Take the value, convert it into its hexadecimal equivalent and search the GetProductInfo function page on MSDN for edition information.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get |
Example:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Get>
<CmdID>$CmdID$</CmdID>
<Item>
<Target>
<LocURI>./Device/Vendor/MSFT/WindowsLicensing/Edition</LocURI>
</Target>
</Item>
</Get>
<Final/>
</SyncBody>
</SyncML>
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1511 [10.0.10586] and later |
./Vendor/MSFT/WindowsLicensing/LicenseKeyType
Returns the parameter type used by Windows 10 devices for an edition upgrade. Windows 10 desktop devices require a product key for an edition upgrade. Windows 10 mobile devices require a license for an edition upgrade.
Description framework properties:
Property name | Property value |
---|---|
Format | chr (string) |
Access Type | Get |
Example:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Get>
<CmdID>$CmdID$</CmdID>
<Item>
<Target>
<LocURI>./Device/Vendor/MSFT/WindowsLicensing/LicenseKeyType</LocURI>
</Target>
</Item>
</Get>
<Final/>
</SyncBody>
</SyncML>
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1809 [10.0.17763] and later |
./Vendor/MSFT/WindowsLicensing/SMode
Interior node for managing S mode.
Description framework properties:
Property name | Property value |
---|---|
Format | node |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1809 [10.0.17763] and later |
./Vendor/MSFT/WindowsLicensing/SMode/Status
Returns the status of the latest SwitchFromSMode or SwitchingPolicy set request.
Possible values:
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get |
Example:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Get>
<CmdID>6</CmdID>
<Item>
<Target>
<LocURI>
./Vendor/MSFT/WindowsLicensing/SMode/Status
</LocURI>
</Target>
</Item>
</Get>
<Final/>
</SyncBody>
</SyncML>
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1809 [10.0.17763] and later |
./Vendor/MSFT/WindowsLicensing/SMode/SwitchFromSMode
Switches a device out of S mode if possible. Does not reboot.
Description framework properties:
Property name | Property value |
---|---|
Format | null |
Access Type | Exec |
Example:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Exec>
<CmdID>5</CmdID>
<Item>
<Target>
<LocURI>
./Vendor/MSFT/WindowsLicensing/SMode/SwitchFromSMode
</LocURI>
</Target>
<Meta>
<Format xmlns="syncml:metinf">null</Format>
<Type>text/plain</Type>
</Meta>
<Data></Data>
</Item>
</Exec>
<Final/>
</SyncBody>
</SyncML>
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1809 [10.0.17763] and later |
./Vendor/MSFT/WindowsLicensing/SMode/SwitchingPolicy
Policy that determines whether a consumer can switch the device out of S mode.
This setting is only applicable to devices available in S mode.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Add, Delete, Get, Replace |
Allowed values:
Value | Description |
---|---|
0 | No Restriction: The user is allowed to switch the device out of S mode. |
1 | User Blocked: The admin has blocked the user from switching their device out of S mode. Only the admin can switch the device out of S mode through the SMode/SwitchFromSMode node. |
Examples:
Add S Mode SwitchingPolicy
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Add>
<CmdID>4</CmdID>
<Item>
<Target>
<LocURI>
./Vendor/MSFT/WindowsLicensing/SMode/SwitchingPolicy
</LocURI>
</Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type>text/plain</Type>
</Meta>
<Data>1</Data>
</Item>
</Add>
<Final/>
</SyncBody>
</SyncML>
Get S Mode Switching Policy
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Get>
<CmdID>2</CmdID>
<Item>
<Target>
<LocURI>
./Vendor/MSFT/WindowsLicensing/SMode/SwitchingPolicy
</LocURI>
</Target>
</Item>
</Get>
<Final/>
</SyncBody>
</SyncML>
Replace S mode SwitchingPolicy
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Replace>
<CmdID>1</CmdID>
<Item>
<Target>
<LocURI>
./Vendor/MSFT/WindowsLicensing/SMode/SwitchingPolicy
</LocURI>
</Target>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
<Type>text/plain</Type>
</Meta>
<Data>1</Data>
</Item>
</Replace>
<Final/>
</SyncBody>
</SyncML>
Delete S mode SwitchingPolicy
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Delete>
<CmdID>3</CmdID>
<Item>
<Target>
<LocURI>
./Vendor/MSFT/WindowsLicensing/SMode/SwitchingPolicy
</LocURI>
</Target>
</Item>
</Delete>
<Final/>
</SyncBody>
</SyncML>
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1511 [10.0.10586] and later |
./Vendor/MSFT/WindowsLicensing/Status
Returns the status of an edition upgrade on Windows 10 desktop and mobile devices. Status: 0 = Failed, 1 = Pending, 2 = In progress, 3 = Completed, 4 = Unknown.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get |
Example:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Get>
<CmdID>$CmdID$</CmdID>
<Item>
<Target>
<LocURI>./Device/Vendor/MSFT/WindowsLicensing/Status</LocURI>
</Target>
</Item>
</Get>
<Final/>
</SyncBody>
</SyncML>
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1607 [10.0.14393] and later |
./Vendor/MSFT/WindowsLicensing/Subscriptions
Node for subscriptions.
Description framework properties:
Property name | Property value |
---|---|
Format | node |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1607 [10.0.14393] and later |
./Vendor/MSFT/WindowsLicensing/Subscriptions/{SubscriptionId}
Node for subscription IDs.
Description framework properties:
Property name | Property value |
---|---|
Format | node |
Access Type | Get |
Dynamic Node Naming | ClientInventory |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1607 [10.0.14393] and later |
./Vendor/MSFT/WindowsLicensing/Subscriptions/{SubscriptionId}/Name
Returns the name of the subscription.
Description framework properties:
Property name | Property value |
---|---|
Format | chr (string) |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1607 [10.0.14393] and later |
./Vendor/MSFT/WindowsLicensing/Subscriptions/{SubscriptionId}/Status
Returns the status of the subscription.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows Insider Preview |
./Vendor/MSFT/WindowsLicensing/Subscriptions/DisableSubscription
Disable or Enable subscription activation on a device.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Replace |
Allowed values:
Value | Description |
---|---|
0 | Enable Subscription. |
1 | Disable Subscription. It also removes any existing subscription on the device. |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows Insider Preview |
./Vendor/MSFT/WindowsLicensing/Subscriptions/RemoveSubscription
Remove subscription uninstall subscription license. It also reset subscription type to User Based Subscription.
Description framework properties:
Property name | Property value |
---|---|
Format | null |
Access Type | Exec |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows Insider Preview |
./Vendor/MSFT/WindowsLicensing/Subscriptions/SubscriptionLastError
Error code of last subscription operation. Value would be empty(0) in absence of error.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows Insider Preview |
./Vendor/MSFT/WindowsLicensing/Subscriptions/SubscriptionLastErrorDescription
Error description of last subscription operation. Value would be empty, if error description can't be evaluated.
Description framework properties:
Property name | Property value |
---|---|
Format | chr (string) |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows Insider Preview |
./Vendor/MSFT/WindowsLicensing/Subscriptions/SubscriptionStatus
Status of last subscription operation.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows Insider Preview |
./Vendor/MSFT/WindowsLicensing/Subscriptions/SubscriptionType
Set device to Device Based Subscription or User Based Subscription. For Device Based Subscription this action will automatically acquire the subscription on the device. For User Based Subscription the existing process of user logon will be required.
Description framework properties:
Property name | Property value |
---|---|
Format | int |
Access Type | Get, Replace |
Allowed values:
Value | Description |
---|---|
0 | User Based Subscription. |
1 | Device Based Subscription. |
Note
This policy is deprecated and may be removed in a future release.
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1511 [10.0.10586] and later |
./Vendor/MSFT/WindowsLicensing/UpgradeEditionWithLicense
Provide a license for an edition upgrade of Windows 10 mobile devices. Does not require reboot.
Description framework properties:
Property name | Property value |
---|---|
Format | xml |
Access Type | Exec |
Scope | Editions | Applicable OS |
---|---|---|
✅ Device ❌ User |
✅ Pro ✅ Enterprise ✅ Education ✅ IoT Enterprise / IoT Enterprise LTSC |
✅ Windows 10, version 1511 [10.0.10586] and later |
./Vendor/MSFT/WindowsLicensing/UpgradeEditionWithProductKey
Enter a product key for an edition upgrade of Windows 10 desktop devices. Requires reboot.
When a product key is pushed from an MDM server to a user's device, changepk.exe
runs using the product key. After it completes, a notification is shown to the user that a new edition of Windows is available. The user can then restart their system manually or after two hours, the device will restart automatically to complete the upgrade. The user will receive a reminder notification 10 minutes before the automatic restart.
After the device restarts, the edition upgrade process completes. The user will receive a notification of the successful upgrade.
Note
If another policy requires a system reboot that occurs when changepk.exe
is running, the edition upgrade will fail.
If a product key is entered in a provisioning package and the user begins installation of the package, a notification is shown to the user that their system will restart to complete the package installation. Upon explicit consent from the user to proceed, the package continues installation and changepk.exe
runs using the product key. The user will receive a reminder notification 30 seconds before the automatic restart.
After the device restarts, the edition upgrade process completes. The user will receive a notification of the successful upgrade.
This node can also be used to activate or change a product key on a particular edition of Windows 10 desktop device by entering a product key. Activation or changing a product key doesn't require a reboot and is a silent process for the user.
Important
The product key entered must be 29 characters (that is, it should include dashes), otherwise the activation, edition upgrade, or product key change on Windows 10 desktop devices will fail. The product key is acquired from Microsoft Volume Licensing Service Center. Your organization must have a Volume Licensing contract with Microsoft to access the portal.
The following are valid edition upgrade paths when using this node through an MDM:
Activation or changing a product key can be carried out on the following editions:
Description framework properties:
Property name | Property value |
---|---|
Format | chr (string) |
Access Type | Exec |
Reboot Behavior | Automatic |
Example:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncBody>
<Exec>
<CmdID>$CmdID$</CmdID>
<Item>
<Target>
<LocURI>./Device/Vendor/MSFT/WindowsLicensing/UpgradeEditionWithProductKey</LocURI>
</Target>
<Meta>
<Format xmlns="syncml:metinf">chr</Format>
</Meta>
<Data>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Data>
</Item>
</Exec>
<Final/>
</SyncBody>
</SyncML>
Note
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
in the Data tag should be replaced with your product key.
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayTraining
Module
Select Windows Server editions, servicing options, and activation - Training
Select Windows Server editions, servicing options, and activation
Certification
Microsoft 365 Certified: Endpoint Administrator Associate - Certifications
Plan and execute an endpoint deployment strategy, using essential elements of modern management, co-management approaches, and Microsoft Intune integration.
Documentation
View the XML file containing the device description framework (DDF) for the WindowsLicensing configuration service provider.