• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 112
  • Last Modified:

How to windows activate server 2012 VM

I have a Windows Server 2012 R2 Standard running as a hypervisor. Which then has one guest VM running Server 2012 R2 Standard. I have now created a second VM, also running Server 2012 R2 Standard.

I used a iso from my vlc. I know that the host OS licence covers the two guest VMs too.

The new VM will not activate, When I click to activate I get ask for a licence key. I didnt install hyper V server myself and dont have any licence key documentation.

How can I get this machine activated?
0
roy_batty
Asked:
roy_batty
  • 4
  • 3
  • 2
2 Solutions
 
Cliff GaliherCommented:
If you have a volume license, the key is in the VL portal. While a standard license does indeed cover two VMs, you still need to use keys in the portal to activate the VMs. The host does not do so automatically on standard.
0
 
roy_battyDirectorAuthor Commented:
OK I only used the VLSC to download the media. The key I have is for someone else.

So I used this https://nedimmehic.org/2017/02/17/how-to-find-windows-product-key-allversions-of-windows/ 

to get the licence key used on the hyper-v server. When I tried to use that on teh new VM it says that it didnt work.

Any suggestions?
0
 
Cliff GaliherCommented:
If you have legal licenses  you have legal keys documented somewhere. Nobody here can tell you where that is. And I don't recommend using key extracters or other random keys. That's legally and ethically pretty much a stretch for me. My only advice is find your legally issued key(s.)

I don't even recommend using VL media to install the OS if it is an OEM license. That's called reimaging and is also illegal  as that is not an OEM right.
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
MaheshArchitectCommented:
automated activation works only on host having datacenter editions

Still with standard edition you are entitled to run two VMs for free
with below powershell find out product key for your host server

(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey

Open in new window


after that try to use same key on VMs and see if it gets activated
if not try below process:
on VM with elevated command prompt:
slmgr /upk <press enter> --------wait to uninstall existing key
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX <press enter> ----------wait to install new key
for last step you should have internet:
slmgr /ato <press enter> to activate windows with MS clearing house
0
 
MaheshArchitectCommented:
you may use below code and save it in vbs extension and run on host server to find out key
run it from elevated command prompt
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))

Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function

Open in new window

original source:
https://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/
0
 
roy_battyDirectorAuthor Commented:
OK done that. Mahesh's script gave me same key I had found myself earlier.

Tried using this key via the Slmgr commands mentioned above. I get as far as applying the code and it fails with an error 0XC004F050 The software licensing service reported that the product key is invalid.

Is this happening because I used volume licence media to install the VM when originally the hyper-v host server was an OEM licence?
0
 
MaheshArchitectCommented:
Then try to activate host with OEM key
Replace VL key with OEM and then try same procedure with guest VMs
0
 
roy_battyDirectorAuthor Commented:
OK when I run Mahesh's script aboce I get a licence key, when I try and use that key on the new VM it fails with an error of Invalid Key.

I then decided to try Magic JellyBean Keyfinder on the Host Hyper-V server. Jellybean gives me a completely different key. When I use this key it activates fine.
0
 
roy_battyDirectorAuthor Commented:
My solution is what actually worked in the end
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now