Change product key Windows Server 2012

Hi @lovelechiverri-7801

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 ()
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 = 24; $i -ge 0; $i--) {
$k = 0
For ($j = 14; $j -ge 0; $j--) {
$k = $k * 256 -bxor $binArray[$j]
$binArray[$j] = [math]::truncate($k / 24)
$k = $k % 24
}
$productKey = $charsArray[$k] + $productKey
If (($i % 5 -eq 0) -and ($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.

Change Product Key in Windows Server 2012

Windows Server 2012 does not offer a "Change Product Key" link that is commonly found in Windows Server 2008. To change the product key in Windows Server 2012:

1. Open the Start Menu.
2. Type in "Slui.exe 0x3" in the search box. 
3. Click the "Slui.exe 0x3" icon.
4. Type in the new product key in the Windows Activation window and click "Activate".

Article ID: 155, Created: December 16, 2012 at 8:04 PM, Modified: December 16, 2012 at 8:04 PM

Add Feedback

I have come across a useful set of cmd’s for when you need to change the Product Key in server 2012. When I went to active my new file server,  I ran into an issue when trying to activate with the Product  KMS key.

Server 2012’s system properties do not allow you to change the Product key.

To change this you need to open power shell in privileged mode and enter the following cmd’s.
slmgr -upk (this removes the current Product Key)

slmgr -ipk XXXX-XXXX-XXXX-XXXX (this installs the new Product Key)

Please see Microsoft’s Article ID: 2750773:

http://support.microsoft.com/kb/2750773

Happy activating.

(QuickPacket sells Windows licenses at a great price, order a server with us and get 15% off your first invoice with promo code PACKETS)

To change your Windows Server 2012 license key open power shell in privileged mode and enter the following commands:

1. To remove your existing (default) installation key:   slmgr -upk

2. To add a new key slmgr -ipk XXXX-XXXX-XXXX-XXXX

If you’ve entered a valid key, your Windows Server will be activated automatically in a few seconds, no additional steps are required. You will no longer see a warning message on your desktop and in Control Panel / Actions.

Unlike Other Versions , We don’t have Change Product key option in Window Server 2012

Start – Search – Slui.exe 0x3

Change product key Windows Server 2012

Enter the Product Key – Choose Activate

Change product key Windows Server 2012

Change product key Windows Server 2012

Change product key Windows Server 2012

Reference KB –

One more Method Available

http://support.microsoft.com/kb/2750773/en-us

Satheshwaran Manoharanhttps://www.azure365pro.com

Specialized in Microsoft Azure - Office 365 / Microsoft Exchange; conducted numerous projects worldwide in designing, supporting, and implementing messaging and virtualization infrastructure for medium-sized and large enterprises. Further, I am a Cloud Architect and Technical Advisor for various start-ups.

Can I change my Windows product key?

Select the Start button, and then select Settings > Update & Security > Activation . Select Change product key. Type in the product key found on the COA and follow the instructions.

How to remove product key from Windows Server 2012 R2?

Log in to the system with admin account and open CMD with Run as admin rights..
slmgr /upk It stands for uninstall product key. The /upk parameter uninstalls the product key of the current Windows edition. ... .
Enter slmgr /upk and Hit enter then wait for this to complete..

How to activate Windows Server 2012 with product key?

Use the key in the following command. Make sure you are running the below command from elevated command prompt. DISM /Online /Set-Edition:ServerStandard /ProductKey:D2N9P-3P6X9-2R39C-7RTCD-MDVJX /AcceptEula. ... .
Once the server is rebooted, try the volume license key from system properties or use SLUI 3 command..

How to activate Windows Server 2012 license?

Launch the RDS license manager. In Windows Server 2012, launch Server Manager and click Tools > Terminal Services > Remote Desktop Licensing Manager. Right-click the server name and select Activate Server. Click Next on the welcome screen.