Since you're using volume license product keys you should have also used volume center download so the channels line up. As a work around you can try using kms keys as intermediate step.
https://learn.microsoft.com/en-us/windows-server/get-started/kmsclientkeys#windows-server-2012-r2

(below assumes 2012 R2 Standard)

Dism /online /Set-Edition:ServerStandard /AcceptEula /ProductKey:D2N9P-3P6X9-2R39C-7RTCD-MDVJX

then after reboot

(below using your volume product key)

slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
slmgr /ato

--please don't forget to Accept as answer if the reply is helpful--

🌐
UNIQ
uniq.software › en › help-centre › getting-started › windows-server-2012-r2 › how-do-i-activate-windows-server-2012-r2
How do I activate Windows Server 2012 R2? | UNIQ
Note: It's necessary for the server ... open. Type CMD and press Enter. In the box, type the following command: dism /online /set-edition:serverstandard /productkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /accepteula....
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows-server › get-started › kms-client-activation-keys
Key Management Services (KMS) client activation and product keys | Microsoft Learn
When you activate Windows or Windows Server with a KMS host, the keys provided here are intended for volume licensing scenarios and can't be used with retail editions. KMS client keys won't activate or serve as a retail license key. If you installed a retail copy of Windows, you must use another activation method, like a MAK or by purchasing a genuine retail license.
Discussions

Change Windows Server 2012 Product Key - Software & Applications - Spiceworks Community
Open “Server Manager”, click ... link. It will open “Windows Activation” where you can enter new product key and activate. ... I ran across some different directions when activating a 2012 R2.... More on community.spiceworks.com
🌐 community.spiceworks.com
88
February 25, 2013
Finding windows server 2012r2 standard product key
HI Team, We Can any one help where to find find the product key in windows server 2012r2 where as i had run the multiple commands still we are unable to get the key. Please help us. More on learn.microsoft.com
🌐 learn.microsoft.com
2
0
During the testing, I activated Windows Server 2012 R2 on my personal computer using a product key. Can this product key be used on another server? If not, how can it be resolved?
During the testing, I activated Windows Server 2012 R2 on my personal computer using a product key. Can this product key be used on another server? If not, how can it be resolved? More on learn.microsoft.com
🌐 learn.microsoft.com
2
0
Where can I get a Windows Server 2012 r2 product key ?
Hello comunity, I would like to know where can I get a Windows Server 2012 R2 product key. I need this server and not for just evaluation. When I download the ISO, I found only the evaluation period but cant find where to get a product key. … More on learn.microsoft.com
🌐 learn.microsoft.com
3
0
March 23, 2021
Top answer
1 of 4
3

Since you're using volume license product keys you should have also used volume center download so the channels line up. As a work around you can try using kms keys as intermediate step.
https://learn.microsoft.com/en-us/windows-server/get-started/kmsclientkeys#windows-server-2012-r2

(below assumes 2012 R2 Standard)

Dism /online /Set-Edition:ServerStandard /AcceptEula /ProductKey:D2N9P-3P6X9-2R39C-7RTCD-MDVJX

then after reboot

(below using your volume product key)

slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
slmgr /ato

--please don't forget to Accept as answer if the reply is helpful--

2 of 4
1

Hi @lovel echiverri

Seems you missed to pull the product key from machine 1 before rebuild...

From machine 2 :command prompt as administrator --- wmic path softwarelicensingservice get OA3xOriginalProductKey

slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx

slmgr /ato

above commands should tell you original licenses /product keys


Frm machine 2 ---

Open Notepad.
Copy and paste the following text into the notepad window

function Get-WindowsKey {
## function to retrieve the Windows Product Key from any PC
## by Jakob Bindslet (******@bindslet.dk)
param ($targets = ".")
$hklm = 2147483650
$regPath = "Software\Microsoft\Windows NT\CurrentVersion"
$regValue = "DigitalProductId"
Foreach ($target in $targets) {
$productKey = $null
$win32os = $null
$wmi = [WMIClass]"\$target\root\default:stdRegProv"
$data = $wmi.GetBinaryValue($hklm,$regPath,$regValue)
$binArray = ($data.uValue)[52..66]
$charsArray = "B","C","D","F","G","H","J","K","M","P","Q","R","T","V","W","X","Y","2","3","4","6","7","8","9"
## decrypt base24 encoded binary data
For (i -ge 0; $i--) {
$k = 0
For (j -ge 0; $j--) {
$k = $k * 256 -bxor $binArray[binArray[$j] = [math]::truncate(k = $k % 24
}
$productKey = $charsArray[productKey
If ((i -ne 0)) {
$productKey = "-" + $productKey
}
}
$win32os = Get-WmiObject Win32_OperatingSystem -computer $target
$obj = New-Object Object
$obj | Add-Member Noteproperty Computer -value $target
$obj | Add-Member Noteproperty Caption -value $win32os.Caption
$obj | Add-Member Noteproperty CSDVersion -value $win32os.CSDVersion
$obj | Add-Member Noteproperty OSArch -value $win32os.OSArchitecture
$obj | Add-Member Noteproperty BuildNumber -value $win32os.BuildNumber
$obj | Add-Member Noteproperty RegisteredTo -value $win32os.RegisteredUser
$obj | Add-Member Noteproperty ProductID -value $win32os.SerialNumber
$obj | Add-Member Noteproperty ProductKey -value $productkey
$obj
}
}

Save the text above into a file with the ".ps1" extension on the Desktop. Example key.ps1

Open the Powershell console as administrator and type in Set-ExecutionPolicy RemoteSigned

Next type in Import-Module C:\users\"username"\desktop**key.ps1**; Get-WindowsKey

=====

(If the reply was helpful please don't forget to upvote and/or accept as answer, Thank You)

Regards,
J.D.

Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

🌐
Keys Support
keys.express › home › docs › instructions for installing and activating windows server (evaluation version)
Instructions for installing and activating Windows Server (Evaluation Version) - Keys Support
December 9, 2025 - To activate the Windows Server, it may be necessary to enter the activation key via the command line / CMD with administrator rights. The first step is to check whether the correct server version is already installed on the device.
🌐
Spiceworks
community.spiceworks.com › software & applications
Change Windows Server 2012 Product Key - Software & Applications - Spiceworks Community
February 25, 2013 - Open “Server Manager”, click “Local Server” from the left panel. In the “Properties” window look for “Product ID” click the blue hyper link. It will open “Windows Activation” where you can enter new product key and activate.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1690740 › finding-windows-server-2012r2-standard-product-key
Finding windows server 2012r2 standard product key - Microsoft Q&A
The Generic Volume License Key (GVLK) for Windows Server 2012 R2 Standard is D2N9P-3P6X9-2R39C-7RTCD-MDVJX. This key is used for KMS client activation and should be pre-installed on your system if it's running a volume licensing edition.
🌐
MS Guides
msguides.com › ms guides › microsoft software products › activating all versions of windows server without a product key
Activating all versions of Windows Server without a product key - MS Guides
May 21, 2023 - As you know, Windows Server is a specialized operating system which is designed for server only. In today’s post, I will show you how to activate Windows in your VPS or dedicated server for FREE using KMS client product keys. Although the KMS license is valid for 180 days only but there is no limit on the number of activation.
Find elsewhere
🌐
MSGANG
msgang.com › home › windows server 2012 › how to activate windows server 2012 r2 standard for free
How to Activate Windows Server 2012 R2 Standard for Free — MSGANG.COM
June 13, 2026 - 3. Your Windows Server 2012 R2 Standard is activated using a KMS key. It’ll reactivate after every 7 days automatically. So, your Windows is permanently activated. ... ::OutputC:\Windows\system32>cscript //nologo %windir%\system32\slmgr.vbs ...
🌐
GitHub
gist.github.com › Tuurash › 1deb7a3bd93a97210688c10b7fcb001f
Microsoft Generic Product Keys for All Editions · GitHub
2 weeks ago - If you're trying to activate Microsoft Office, make sure you use a product key that matches your installed version. You can check https://noxkeys.com/ for available options ... These generic keys are useful for getting Windows installed, but activation is a separate step.
🌐
EaseUS
easeus.com › easeus key finder › how to find windows server 2012 product key [3 ways]
How to Find Windows Server 2012 Product Key in 2026 - EaseUS
July 23, 2026 - Because it's a Windows operating system, you'll need a valid product key to activate and use it. It will be in a trial state if you don't have it, so you won't be able to use it to its total capacity. However, obtaining a product key for Windows Server 2012 R2 is simple.
🌐
Gamers-Outlet.net
gamers-outlet.net › home › software › microsoft server products › microsoft windows server 2012 r2 standard (lifetime license / global)
Microsoft Windows Server 2012 R2 Standard (Lifetime License) | Instant Activation
Microsoft Windows Server 2012 R2 Standard (Lifetime License) | Instant Activation - Microsoft Windows Server 2012 R2 Standard (Lifetime License / Global) | Securely at Gamers-Outlet.net. Instant digital delivery, 24/7 support & best price activation.
Price: $4.71
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 327849 › where-can-i-get-a-windows-server-2012-r2-product-k
Where can I get a Windows Server 2012 r2 product key ? - Microsoft Q&A
March 23, 2021 - The product key is embedded. You'll just need to connect to internet for long enough to activate the product then you can disconnect from internet for remainder of 180 day evaluation.
🌐
Reddit
reddit.com › r/windowsserver › windows server 2012 r2 licensing questions
r/WindowsServer on Reddit: Windows Server 2012 R2 Licensing Questions
May 1, 2024 -

So basically, I have some legacy software which cannot run on windows server higher than 2012 R2 and I am concerned with what may happen when one of our servers bites the dust. I have a few questions.

  1. How does Windows server 2012 verify license status? My understanding is Microsoft runs a service that windows server 2012 reaches out to when a key is input to verify it is legit. Is this accurate, and if so will this service ever be shut down. Will there be a time when I can no longer activate a 2012 install even with a legitimate key?

  2. Is there any 100% legitimate way to buy a windows server 2012 R2 key still today? I talked to a couple Microsoft Representatives who told me no, but I don't know if they are trustworthy.

Top answer
1 of 4
4
You are confusing the concept of "licensing" with "activation". Proof of licensing is only required in the event that Microsoft conducts an audit of the client business. And the only "proof" you need is either a receipt that you purchased Windows Server through a valid method; either (1) OEM along with the purchase of server hardware, (2) retail box off the shelf, for which you would have a receipt as well as retail Certificate of Authenticity (COA) with the box, or (3) a valid Volume License Agreement with Microsoft. "Activation" is the actual technical process that requires entering the 25-character "key" into an instance of Windows Server. Only Volume License instances activated with a KMS key will "phone home", but that phone home usually involves a corporate activation server and not a Microsoft licensing server. Retail and OEM licensing are generally a one-time Activation process. How does Windows server 2012 verify license status? It doesn't; which is why there are so many instances of pirated Windows Server in the wild. Is there any 100% legitimate way to buy a windows server 2012 R2 key still today? No, but you would buy a legitimate license of Windows Server 2022 Standard Edition. One of the things that the license grants you is something called " downgrade rights ", which lets you install an older version of Windows Server Standard, but you have to provide the installation media yourself. That is, the server hardware itself is licensed according to the terms of Windows Server 2022 (Per-core licensing), but the actual installation is done with Windows Server 2012 R2. That is a valid, licensed configuration. Edit: A valid Volume License Agreement with Microsoft would provide you access to the VLSC, which should still have 2012 R2 activation keys available. For OEM, you would have go through the OEM provider to request a key. That's a bit of a crapshoot as not all OEM tech reps will know how to obtain it on their end. For retail, you would have to call Microsoft Activation support number, explain the situation, provide proof-of-licensing for 2022 and then ask them for an activation key.
2 of 4
1
What software won't run on newer than 2012R2? You need to activate once. 2012 R2 will soon not be supported anymore. I still run a server with it and get small updates once in a while but it should run longer than I am around. If you have retail license you can move it to another server but not for OEM. Best to run it as a virtual machine that you can move from server to server. You can then run it on 2022 or 2030 Server for that matter. I'm not sure but a new license may still activate your old 2012 R2 but make sure you download an iso before it disappears.
🌐
Microsoft Learn
learn.microsoft.com › en-us › previous-versions › windows › it-pro › windows-server-2012-r2-and-2012 › jj612867(v=ws.11)
Appendix A: KMS Client Setup Keys | Microsoft Learn
August 31, 2016 - Computers that are running volume licensing editions of Windows 10, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Vista, and Windows Server 2008 are, by default, KMS clients with no additional configuration needed. To use the keys listed here (which are GVLKs), you must first have a KMS host running in your deployment. If you haven’t already configured a KMS host, see Deploy KMS Activation for steps to set one up.
🌐
PassFab
passfab.com › product-key › download-windows-server-2012-r-2-product-key-free.html
Easy Way to Get Windows Server 2012 R2 Product Key for Free
May 22, 2026 - In this case, you can try out all the features of Windows Server 2012 R2 for free for a period of 180 days. After your evaluation period is over, you will be asked to enter in a product key to continue using the system. When you enter the requested key, your full functional OS usage can be continued either lifetime or till the time the key is valid without any limitations in features or usage as you have activated the OS with the key.