Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, January 16, 2020 8:15 AM
Hi Guys,
I am provisioning windows 2012 R2 VMs using the vSphere API my VM is getting created & then I logged in as administrator using the API inside the guest and trying to activate the Windows with below powershell command.
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe slmgr /ipk "product key" but getting below error
0xC004D302 On a computer running Microsoft Windows non-core edition, run 'slui.exe 0x2a 0xC004D302' to display the error text
but when i am running the same command on the VM after login from the administrator using the console it works.
any clue why this is happening? is there any dependency for slmgr.vbs ?
would appreciate your input here.
thanks
NM-BG
All replies (3)
Thursday, January 16, 2020 10:55 AM
You should run below command to install key,
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX
to activate you should run,
slmgr /ato
reference is below,
/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn502540(v%3Dws.11)
/en-us/windows-server/get-started/activation-slmgr-vbs-options
http://blog.technotesdesk.com/how-to-activate-windows-server-core-2019-from-command-line
Friday, January 17, 2020 7:15 AM
Hi,
If you install Windows as a guest operating system in a new virtual machine, it requires activation the same as if you had installed it on a physical computer.
We should log into the console of the VM and use the slmgr tool by running slmgr /ipk.
For your reference:
Best Regards,
Farena
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Monday, January 20, 2020 7:44 AM
Hi,
Just checking in to see if the information provided was helpful.
If the reply helped you, please remember to mark it as an answer.
If no, please reply and tell us the current situation in order to provide further help.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].