Editions, licensing and activation
-
Phase 0: Before you start
-
Phase 1: The foundation
-
Phase 2: Core administration and security
-
Phase 3: Enterprise infrastructure
-
Phase 4: Troubleshooting step by step
-
Phase 5: Final project and career
Ask five admins how Windows Server licensing works and you’ll probably hear five different answers. If you get it wrong in one direction the company pays for licences it doesn’t need, and if you get it wrong in the other an audit finds a gap that costs far more than the licences ever would have.
We’ll cover the editions, how core-based licensing and access licences fit together, and how Windows proves it’s licensed through activation. Along the way you’ll read your own laptop’s licence, see which editions it could switch to, and build a small calculator that tells you how many core licences a server needs.
| Time | You need | By the end you can |
|---|---|---|
| About 50 minutes | Your Windows laptop and PowerShell; nothing to install | Choose between Standard and Datacenter, count the core licences a server needs, explain CALs, compare KMS, MAK, ADBA and AVMA activation, and convert an evaluation server to a full edition |
What it is, in one line
Windows Server licensing is the set of rules that decides how many licences a server needs (counted by processor cores, plus one for each user or device that connects) and how Windows proves, through activation, that it’s properly licensed.
In Simple Words
A canteen with two kinds of passes
Imagine an office canteen. You can buy a meal pass that covers two meals and buy more passes when you want more meals, or you can pay extra for an all-you-can-eat pass that covers as many meals as you can manage. Everyone who walks in also needs an entry badge, even if someone else paid for their food, and a guard at the door checks your receipt to make sure the pass is real.
Windows Server licensing is a lot like that. Standard is the meal pass, where each set of licences covers two virtual machines, and Datacenter is the all-you-can-eat pass with unlimited virtual machines on that server. The entry badges are Client Access Licences (CALs), and the guard checking receipts is activation.
Engineer's View
Editions, cores, CALs and activation
The editions:
| Edition | Who it is for | Virtual machines |
|---|---|---|
| Standard | Physical servers or lightly virtualized hosts | 2 Windows Server VMs per full set of core licences; add more sets for more VMs |
| Datacenter | Hosts running many VMs | Unlimited Windows Server VMs on the licensed host. Also adds Storage Spaces Direct, software-defined networking and Shielded VMs |
| Datacenter: Azure Edition | Azure and Azure Stack only | Hotpatching on by default |
| Essentials | Small businesses (sold with the server hardware) | Up to 25 users and 50 devices, one VM, no CALs needed |
Core-based licensing. You license every physical core in the server, and there’s a minimum of 8 cores per processor and 16 cores per server.
Licences come in packs of 2 cores (and 16-core packs), so even a small server with one 4-core processor needs 16 core licences.
Client Access Licences (CALs). As well as the core licences, each user or device that uses the server needs a Windows Server CAL, which you buy either per user or per device.
Remote Desktop Services needs its own RDS CALs on top of that, and a CAL has to be the same version as the server or a newer one.
Activation is how Windows checks the licence. These are the ways you’ll usually meet in a company:
- Retail or OEM: a key for one machine, often from the hardware vendor.
- MAK (Multiple Activation Key): one key that’s used many times, where each machine activates once with Microsoft over the internet.
- KMS (Key Management Service): an activation server you run in-house. Machines find it through DNS, activate for 180 days and then renew on their own.
- ADBA (Active Directory-Based Activation): the activation object sits in Active Directory, so a machine activates as soon as it joins the domain.
- AVMA (Automatic Virtual Machine Activation): VMs on a Datacenter Hyper-V host activate against the host itself, and no network is needed for it.
- Pay-as-you-go through Azure Arc: with Windows Server 2025 you can be billed per core through an Azure subscription rather than buying licences up front.
Evaluation to full edition. You don’t have to reinstall an evaluation server, because DISM /online /Set-Edition with a real product key converts it in place.
There are limits, though. A Datacenter evaluation can only become Datacenter, and a domain controller can’t be converted at all, so for a DC you build a new licensed one, move the roles over and remove the old one.
Licensing terms change over time. This lesson teaches you the model, so check the current Microsoft product terms or ask your licensing partner before you buy anything.
How it works, step by step
Let’s start with the counting. This is how you work out the core licences for a typical Hyper-V host with two 12-core processors:
- Count the cores per processor and round up to at least 8, which here gives you 12.
- Add them up for the server and round up to at least 16. Here that’s 2 × 12 = 24 core licences, which counts as one full set.
- For Datacenter, you’re done. Those 24 core licences cover the host and every Windows Server VM on it.
- For Standard, count VMs. Each full set of 24 covers 2 VMs, so six VMs need 3 sets, or 72 core licences.
- Add CALs for each user or device that connects, whichever edition you went with.
The more VMs a host runs, the sooner Datacenter turns into the cheaper option. The exact point depends on your price list, but it often lands somewhere around 10 to 14 VMs per host.
Next comes activation. Most company servers use KMS or Active Directory-based activation, and this is how a KMS client finds its activation server and stays activated:
- The server has a KMS client key (GVLK). Volume-licensed media puts it there by default, and Microsoft publishes these keys openly.
- It asks DNS for the KMS host by looking up the SRV record
_vlmcs._tcp.<your domain>. - It connects to the KMS host on TCP port 1688.
- The KMS host counts requests. It won’t activate anything until it has heard from at least 5 servers (or 25 Windows clients), which is why one test machine on its own never activates.
- The server is activated for 180 days and tries to renew every 7 days, so it stays activated as long as it can reach the KMS host now and then.
With ADBA, steps 2 to 4 become a look-up in Active Directory, so there’s no separate server you have to keep alive, and that difference is what the work story below is about.
Hands-on Lab: Windows Server licensing checks and a core calculator
Before you run any command, double-check it
Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.
Everything in this lab only reads information and nothing changes your laptop’s licence. Use a normal PowerShell window unless a step asks for administrator. The same commands work on Windows Server too, and you’ll run them on your lab servers straight after you install them in Lesson 5.
1Read your licence with slmgr
slmgr is the Software Licensing Manager script that comes with Windows. On its own it shows its answers in pop-up boxes, but if you run it through cscript it prints them in the console, where they’re easier to read and copy.
Run these one at a time:
cscript //nologo C:\Windows\System32\slmgr.vbs /dli
cscript //nologo C:\Windows\System32\slmgr.vbs /xprYou should see something like this:
Name: Windows(R), Professional edition
Description: Windows(R) Operating System, OEM_DM channel
Partial Product Key: 3V66T
License Status: Licensed
Windows(R), Professional edition:
The machine is permanently activated./dli shows the edition, the channel (how the licence was sold) and the last five characters of the key, and /xpr tells you when activation expires. On an evaluation server the channel will include “EVAL” and you’ll get an expiry date rather than “permanently activated”.
✅ Checkpoint: You can see your edition, licence channel and licence status.
2Read the same thing with PowerShell
Run this:
Get-CimInstance SoftwareLicensingProduct -Filter "Name LIKE 'Windows%' AND PartialProductKey IS NOT NULL" |
Select-Object Name, ProductKeyChannel, LicenseStatus, GracePeriodRemainingYou should see something like this:
Name ProductKeyChannel LicenseStatus GracePeriodRemaining
---- ----------------- ------------- --------------------
Windows(R), Professional edition OEM:DM 1 0LicenseStatus 1 means licensed.
GracePeriodRemaining is in minutes and shows 0 when activation never expires. On an evaluation or KMS-activated server it counts down, and you divide by 1440 to get days. This is the line you’ll use in a monitoring script, because it behaves the same on every server.
✅ Checkpoint: LicenseStatus is 1 on your laptop, and you know how to turn GracePeriodRemaining into days.
3See which editions this Windows can become
In an administrator PowerShell window, run these one at a time:
DISM /Online /Get-CurrentEdition
DISM /Online /Get-TargetEditionsYou should see something like this (your list may be different):
Deployment Image Servicing and Management tool
Version: 10.0.26100.5074
Image Version: 10.0.26100.6899
Current edition is:
Current Edition : Professional
The operation completed successfully.
Deployment Image Servicing and Management tool
Version: 10.0.26100.5074
Image Version: 10.0.26100.6899
Editions that can be upgraded to:
Target Edition : Education
Target Edition : Enterprise
Target Edition : ProfessionalEducation
Target Edition : ProfessionalWorkstation
The operation completed successfully.Both of these commands only read.
On an evaluation server you’d see a current edition like ServerDatacenterEval with ServerDatacenter in the target list, and you’d convert it with DISM /online /Set-Edition:ServerDatacenter /ProductKey:<your key> /AcceptEula. Please don’t run Set-Edition on your laptop.
✅ Checkpoint: You can see your current edition and the editions it could be converted to.
4Build a core licence calculator
Paste this whole block into a normal PowerShell window:
function Get-CoreLicense {
param(
[int]$Processors,
[int]$CoresPerProcessor,
[int]$VMs,
[ValidateSet('Standard', 'Datacenter')][string]$Edition
)
$perProcessor = [math]::Max(8, $CoresPerProcessor) # at least 8 per processor
$perServer = [math]::Max(16, $Processors * $perProcessor) # at least 16 per server
if ($Edition -eq 'Datacenter') { $stacks = 1 } # unlimited VMs
else { $stacks = [math]::Max(1, [math]::Ceiling($VMs / 2)) } # 2 VMs per full set
[pscustomobject]@{
Edition = $Edition
VMs = $VMs
CoresPerStack = $perServer
Stacks = $stacks
CoreLicenses = $perServer * $stacks
TwoCorePacks = $perServer * $stacks / 2
}
}Now compare the two editions for a host with two 12-core processors:
2, 6, 14 | ForEach-Object {
Get-CoreLicense -Processors 2 -CoresPerProcessor 12 -VMs $_ -Edition Standard
Get-CoreLicense -Processors 2 -CoresPerProcessor 12 -VMs $_ -Edition Datacenter
} | Format-TableYou should see this:
Edition VMs CoresPerStack Stacks CoreLicenses TwoCorePacks
------- --- ------------- ------ ------------ ------------
Standard 2 24 1 24 12
Datacenter 2 24 1 24 12
Standard 6 24 3 72 36
Datacenter 6 24 1 24 12
Standard 14 24 7 168 84
Datacenter 14 24 1 24 12
With 2 VMs, both editions need the same 24 core licences and Standard costs much less per licence, so Standard wins. At 14 VMs it flips, because Standard needs seven sets (168 core licences) while Datacenter still needs only 24. Put your company’s prices beside these numbers and the decision makes itself.
✅ Checkpoint: Your table matches the one above, and you can explain why Standard needs 7 sets for 14 VMs.
Break It, Then Fix It
Licensing problems hardly ever show up as red errors. You see them as a gap nobody spotted, or as servers that quietly stop activating, and in this part you’ll cause one of each.
1Break it: a server that is three VMs short
A small office bought a server with one 4-core processor and Windows Server Standard. The admin thought “4 cores, so 4 core licences” and put three VMs on it. Check that with your calculator in the same window:
Run this:
Get-CoreLicense -Processors 1 -CoresPerProcessor 4 -VMs 3 -Edition Standard | Format-TableYou should see this:
Edition VMs CoresPerStack Stacks CoreLicenses TwoCorePacks
------- --- ------------- ------ ------------ ------------
Standard 3 16 2 32 16There are two mistakes here.
Because of the 16-core minimum per server, one set is 16 core licences and not 4. On top of that, three VMs need two sets on Standard since each set covers only two, so the office needed 32 core licences and bought 4.
To fix it, either drop to two VMs or license for three. Check both:
Get-CoreLicense -Processors 1 -CoresPerProcessor 4 -VMs 2 -Edition Standard | Format-TableYou should see this:
Edition VMs CoresPerStack Stacks CoreLicenses TwoCorePacks
------- --- ------------- ------ ------------ ------------
Standard 2 16 1 16 8With two VMs, 16 core licences are enough, and if they really need the third VM they buy a second set of 16. Whichever way they go, the calculation should be written down, because it’s the first thing an auditor asks to see.
✅ Checkpoint: You can see why 3 VMs on Standard need 32 core licences, and 2 VMs need 16.
2Break it: look for a KMS server that is not there
Company laptops and servers that use KMS find their activation server through DNS. Run the same lookup a KMS client would, for a domain that has no KMS host:
Run this:
Resolve-DnsName -Type SRV _vlmcs._tcp.corp.example.comYou’ll get an error like this:
Resolve-DnsName : _vlmcs._tcp.corp.example.com : DNS name does not exist
At line:1 char:1
+ Resolve-DnsName -Type SRV _vlmcs._tcp.corp.example.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (_vlmcs._tcp.corp.example.com:String) [Resolve-DnsName], Win32Exception
+ FullyQualifiedErrorId : DNS_ERROR_RCODE_NAME_ERROR,Microsoft.DnsClient.Commands.ResolveDnsName
“DNS name does not exist” is what a KMS client sees when the SRV record is missing, whether that’s on a home network, on a network where someone deleted the record, or after the KMS host was retired. Activation then fails with error 0xC004F074 (“No Key Management Service could be contacted”).
Fix it: on a company network, an admin would run this same lookup against the real domain name.
If the record is missing, they recreate it or point clients straight at the host with slmgr /skms kms01.corp.example.com:1688. If the record is there, they test the port with Test-NetConnection kms01.corp.example.com -Port 1688. Machines that are hardly ever on the company network are better off with ADBA (which activates when the machine talks to a domain controller) or a MAK.
✅ Checkpoint: You got “DNS name does not exist”, and you know the three things to check when KMS activation fails: the SRV record, port 1688, and whether the machine can reach the company network at all.
This happened at work
The server nobody knew was important
A manufacturing company was running a cleanup project to get rid of old servers. One of them, UTIL02, had no owner on record and almost no traffic, so it was switched off and deleted, and nobody remembered it was the company’s KMS host.
For weeks nothing happened, since KMS activation lasts 180 days. Then servers and Remote Desktop hosts started falling out of activation one after another. Around 300 users on the Remote Desktop farm got an “Activate Windows” watermark on their screens, and the helpdesk phones didn’t stop, with people asking whether the company was using pirated software.
The admins tracked it down by running slmgr /dlv on one of the affected servers. The KMS host name it had last used didn’t resolve in DNS any more, because the _vlmcs._tcp record had been cleaned up along with the server.
The fix: they moved to Active Directory-based activation, which lives in AD itself and can’t disappear when one server is retired. A weekly script now checks LicenseStatus on every server and raises an alert for anything that isn’t 1, and each server in the inventory has an owner and a “what breaks if this goes away” note.
The lesson: the quiet servers are often the ones everything else leans on, so before you retire one, find out what’s using it.
Common mistakes and troubleshooting
| Mistake or symptom | What happens | What to do instead |
|---|---|---|
| Licensing only the cores in use, or fewer than 16 | Audit finds a shortfall | License every physical core, at least 8 per processor and 16 per server |
| Running a third VM on a Standard host with one set of licences | Out of compliance | Buy another full set for every 2 extra VMs, or move to Datacenter |
| Forgetting CALs | Users connect without licences | Count users or devices and buy Windows Server CALs, plus RDS CALs for Remote Desktop |
| Converting an evaluation domain controller | Not supported | Build a new licensed DC, move roles, then demote the evaluation one |
| Typing a GVLK and expecting it to activate on its own | Nothing activates without a KMS host or ADBA | A GVLK only says “find my company’s activation”; you still need KMS or ADBA |
| Error 0xC004F074 | No KMS host could be contacted | Check the _vlmcs._tcp SRV record, port 1688, and network access to the KMS host |
| A single test VM never activates through a new KMS host | The KMS host hasn’t reached its minimum count yet | KMS needs 5 servers (or 25 clients) before it activates anything |
| Evaluation server shuts down every hour | The 180-day evaluation has expired | Check days left in advance with slmgr /xpr; convert with DISM /Set-Edition or rebuild |
| DISM says “Error: 740” | Elevated permissions are required | Run DISM in an administrator window |
Interview questions
Click a question to open it. Each one is written the way an interviewer would ask it. Under it you will see why they ask it and one way you could answer, in your own words.
Fresher level
1. Can you explain the difference between Windows Server Standard and Datacenter, and when you’d pick each?
Why they ask this: It’s a basic choice but an expensive one, and the wrong edition either wastes money or breaks the licensing rules.
How you might answer: For most roles they have the same core features. Standard covers 2 Windows Server VMs per full set of core licences, and Datacenter covers unlimited VMs on the licensed host and adds things like Storage Spaces Direct and Shielded VMs.
So for a heavily virtualized host I’d go with Datacenter, and for lighter ones Standard.
2. Someone tells you the server is fully licensed because they bought the server licence. What might they be missing?
Why they ask this: They want to know you see licensing as more than the server itself, because missing CALs catch a lot of companies out in audits.
How you might answer: Probably the CALs, the Client Access Licences. Every user or device that uses a Windows Server needs one, bought per user or per device.
If they use Remote Desktop Services, they need separate RDS CALs as well.
3. A warning on a server says Windows isn’t activated. How would you check its activation status?
Why they ask this: It’s a quick check you’ll do often, and they want to see you’ve used the activation tools yourself.
How you might answer: I’d run slmgr /xpr or slmgr /dli. From PowerShell I can query the SoftwareLicensingProduct class, and a LicenseStatus of 1 means it’s licensed.
You can also see it on the Activation page in Settings.
2–5 years experience
4. A new server has two 6-core processors. How many core licences does it need?
Why they ask this: They’re checking you know the minimums, because people who count only the physical cores end up under-licensed.
How you might answer: 16. Each processor counts as at least 8 cores, so 2 times 8 gives 16, and that also covers the minimum of 16 per server.
5. Walk me through how KMS activation works, and what usually makes it fail.
Why they ask this: When activation breaks you need to know which part to look at, so they want to hear that you understand all the pieces.
How you might answer: Clients with a GVLK look up the _vlmcs._tcp SRV record to find the KMS host, connect on TCP 1688 and activate for 180 days, renewing every 7 days.
It usually fails because the record is missing, the port is blocked, the host has gone, or the host hasn’t yet reached its count of 5 servers or 25 clients.
6. A server was built on an evaluation licence and now it needs to become properly licensed. How would you convert it?
Why they ask this: They want to hear that you’ve done it and know where it stops working, because one type of server can’t be converted at all.
How you might answer: I’d first check DISM /online /Get-CurrentEdition and /Get-TargetEditions, then run DISM /online /Set-Edition with the product key and /AcceptEula, and restart.
If it’s a domain controller that won’t work, so I’d bring in a licensed DC and retire the evaluation one.
Senior level
7. A new host will run 10 to 20 Windows Server VMs. How would you decide between Standard and Datacenter?
Why they ask this: Senior engineers are expected to back a recommendation with real numbers, so they want to see you decide on cost with evidence.
How you might answer: I’d count the licensed cores, work out how many Standard sets we’d need at the peak VM count, and compare that against one Datacenter licence using our actual price list.
I’d also think about growth and live migration between hosts, since each host has to be licensed for the VMs it can run, and whether we need any Datacenter-only features.
8. Your environment has domain servers, a few old non-domain machines and VMs in an isolated network. How would you choose between KMS, ADBA, AVMA and MAK?
Why they ask this: One method rarely fits everything, so they want to see you pick the right one for each part of the environment.
How you might answer: For domain-joined machines I’d use ADBA, because there’s no separate server to look after and it survives a server cleanup. KMS would cover the older or non-domain systems that are still on the network.
AVMA suits VMs on Datacenter Hyper-V hosts, particularly in isolated networks, and MAK is for the machines that are rarely or never on the company network.
9. Microsoft has just announced a licensing audit for next quarter. How would you prepare?
Why they ask this: They want someone who thinks about compliance before it turns into a problem, because good records keep an audit calm and cheap.
How you might answer: I’d check we have an inventory of hosts, cores, editions and where VMs ran over time, along with CAL counts and proof of purchase. Then I’d run the core calculation for every host and close any gaps before the auditors arrive.
I’d write the method down too, so we can explain every number to the auditor.
Quick quiz
Q1. A server has one 4-core processor. How many core licences does it need?
- 4
- 8
- 16
Show answer
C — The minimum is 8 per processor and 16 per server.
Q2. A Standard host runs 6 Windows Server VMs on a 16-core server. How many core licences?
- 16
- 48
- 96
Show answer
B — Each full set of 16 covers 2 VMs, so 6 VMs need 3 sets: 48.
Q3. What DNS record does a KMS client look for?
- _ldap._tcp
- _vlmcs._tcp
- _kerberos._udp
Show answer
B — KMS clients look up the _vlmcs._tcp SRV record, then connect on port 1688.
Q4. Which activation method keeps working even if one server is retired?
- KMS
- Active Directory-based activation
- Retail key typed by hand
Show answer
B — ADBA stores the activation object in Active Directory itself.
Q5. Can you convert an evaluation domain controller to a licensed edition with DISM?
- Yes, with Set-Edition
- No, build a new licensed DC and move the roles
- Only on Server Core
Show answer
B — Microsoft does not allow converting an evaluation domain controller.
Quick recap
- Windows Server licensing is counted by physical cores, with at least 8 per processor and 16 per server.
- Standard covers 2 VMs per full set of core licences, and Datacenter covers unlimited VMs on the host.
- Users and devices need CALs as well, and Remote Desktop needs RDS CALs on top.
- Activation methods: retail/OEM, MAK, KMS, ADBA, AVMA, and pay-as-you-go through Azure Arc for 2025.
- KMS clients find their host through the _vlmcs._tcp SRV record and TCP 1688, and they stay activated for 180 days.
- Convert evaluation servers with DISM /Set-Edition, but never try it on an evaluation domain controller.
Next lesson
Lesson 5: Install Windows Server 2025 → You’ll install Windows Server 2025 on DC01 and SRV01, choose the right image, set up the disks, check the evaluation days left, and take your first snapshot.
Further reading: Windows Server licensing
If you’d like to read more about Windows Server licensing and activation, Microsoft lists the official KMS client keys on KMS client activation and product keys and explains evaluation conversion on Upgrade and conversion options. The full plan for this course is on the Windows Server Administration course page.
