Attivazione di prodotti Microsoft con KMS

From RVM Wiki
Revision as of 19:03, 8 January 2025 by Gabriele.vivinetto (talk | contribs) (Parte comune)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installazione server KMS con docker

cat > docker-compose.yml <<EOFile
version: '3'
services:
  app:
    container_name: vlmcsd
    image: mikolatero/vlmcsd
    restart: unless-stopped
    ports:
      - '1688:1688'
EOFile
docker compose up

Attivazione WIN 10/11 PRO, WIN2K8R2 STD, WIN7 PRO

  • Comandi comuni
cd %SYSTEMROOT%\System32
cscript.exe //NoLogo  slmgr.vbs -upk
  • Windows 10-11
cscript.exe //NoLogo slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
  • Windows 2008R2 Standard
cscript.exe //NoLogo slmgr.vbs -ipk YC6KT-GKW9T-YTKYR-T4X34-R7VHC
  • Windows Seven Pro
cscript.exe //NoLogo slmgr.vbs -ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
  • Proseguire
cscript.exe //NoLogo slmgr.vbs -skms kms.example.com
cscript.exe //NoLogo slmgr.vbs -ato
cscript.exe //NoLogo slmgr.vbs -dlv

Riferimenti

Attivazione Windows Server

Installazione da ISO Evaluation

  • We need to use DISM to change the product version/edition
  • Open an elevated command prompt
  •    Get a list of available version upgrade paths by typing:
    DISM.exe /Online /Get-TargetEditions
  •    Then upgrade to the listed edition by typing:
    DISM /Online /Set-Edition:<TargetEdition> /ProductKey:<Product Key from Below Table> /AcceptEula

Installazione da ISO Retail

cd %SYSTEMROOT%\System32
cscript.exe //NoLogo  slmgr.vbs -upk
cscript.exe //NoLogo slmgr.vbs -ipk <Product Key from Below Table>

Product Key Table

Server Edition    Product GVLK

   Windows Server 2022 Datacenter    WX4NM-KYWYW-QJJR4-XV3QB-6VM33

   Windows Server 2022 Datacenter Azure Edition    NTBV8-9K7Q8-V27C6-M2BTV-KHMXV

   Windows Server 2022 Standard    VDYBN-27WPP-V4HQT-9VMD4-VMK7H

   Windows Server 2019 Datacenter    WMDGN-G9PQG-XVVXX-R3X43-63DFG

   Windows Server 2019 Standard    N69G4-B89J2-4G8F4-WWYCC-J464C

   Windows Server 2019 Essentials    WVDHN-86M7X-466P6-VHXV7-YY726

   Windows Server 2019 Azure Core    FDNH6-VW9RW-BXPJ7-4XTYG-239TB

   Windows Server 2019 Datacenter Semi-Annual Channel (v.1809)    6NMRW-2C8FM-D24W7-TQWMY-CWH2D

   Windows Server 2019 Standard Semi-Annual Channel (v.1809)    N2KJX-J94YW-TQVFB-DG9YT-724CC

   Windows Server 2019 ARM64    GRFBW-QNDC4-6QBHG-CCK3B-2PR88

   Windows Server 2016 Standard Semi-Annual Channel (v.1803)    PTXN8-JFHJM-4WC78-MPCBR-9W4KR

   Windows Server 2016 Datacenter Semi-Annual Channel (v.1803)    2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG

   Windows Server 2016 Datacenter Semi-Annual Channel (v.1709)    6Y6KB-N82V8-D8CQV-23MJW-BWTG6

   Windows Server 2016 Standard Semi-Annual Channel (v.1709)    DPCNP-XQFKJ-BJF7R-FRC8D-GF6G4

   Windows Server 2016 ARM64    K9FYF-G6NCK-73M32-XMVPY-F9DRR

   Windows Server 2016 Datacenter    CB7KF-BWN84-R7R2Y-793K2-8XDDG

   Windows Server 2016 Standard    WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY

   Windows Server 2016 Essentials    JCKRF-N37P4-C2D82-9YXRT-4M63B

   Windows Server 2016 Cloud Storage    QN4C6-GBJD2-FB422-GHWJK-GJG2R

   Windows Server 2016 Azure Core    VP34G-4NPPG-79JTQ-864T4-R3MQX

Parte comune

  • Proseguire
cd %SYSTEMROOT%\System32
cscript.exe //NoLogo slmgr.vbs -skms kms.example.com
cscript.exe //NoLogo slmgr.vbs -ato
cscript.exe //NoLogo slmgr.vbs -dlv

Troubleshooting

If an error occurred while activating Windows Server:

Error: 0xC004F069 On a computer running Microsoft Windows non-core edition, run 'slui.exe 0x2a 0xC004F069' to display the error text.

The reason is that I have an evaluation version of Windows Server 2022 installed. First, you need to convert it to a Standard version according to this article:

dism /online /set-edition:serverstandard /productkey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /accepteula

Then I can activate my Windows instance on the KMS host.

Riferimenti

Attivazione Office 2019 Pro Plus

I have one that works for office 2019. But I do NOT know why it works.

cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /dstatus

with the following output

   LICENSE NAME: Office 19, Office19ProPlus2019VL_KMS_Client_AE edition
   LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
   BETA EXPIRATION: 1601-01-01
   LICENSE STATUS: ---LICENSED---
   ERROR CODE: 0x4004F040 (for information purposes only as the status is licensed)
   ERROR DESCRIPTION: The Software Licensing Service reported that the product was activated but the owner should verify the Product Use Rights.
   REMAINING GRACE: 179 days (259199 minute(s) before expiring)
  • install volume licensing SKUs for office 2019
@echo off
:ADMIN
openfiles >nul 2>nul ||(
echo CreateObject^("Shell.Application"^).ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs" >nul 2>&1
goto:eof
)
del /f /q "%temp%\getadmin.vbs" >nul 2>nul

for /f "tokens=6 delims=[]. " %%G in ('ver') do set win=%%G

setlocal

pushd "%~dp0"
Title Office 2019 Retail to Volume License Converter

rem	SET OfficePath=%ProgramFiles%\Microsoft Office
SET OfficePath=%ProgramFiles(x86)%\Microsoft Office
if not exist "%OfficePath%\root\Licenses16" SET OfficePath=%ProgramFiles(x86)%\Microsoft Office
if not exist "%OfficePath%\root\Licenses16" (
	echo Could not find the license files for Office 2019!
	pause
	goto :eof
)

echo Press Enter to start VL-Conversion...
echo.
pause
echo.
cd /D "%SystemRoot%\System32"

if %win% GEQ 9200 (
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\ProPlus2019VL_KMS_Client_AE-ppd.xrm-ms"
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\ProPlus2019VL_KMS_Client_AE-ul.xrm-ms"
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\ProPlus2019VL_KMS_Client_AE-ul-oob.xrm-ms"


	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\client-issuance-bridge-office.xrm-ms
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\client-issuance-root.xrm-ms
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\client-issuance-root-bridge-test.xrm-ms
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\client-issuance-stil.xrm-ms
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\client-issuance-ul.xrm-ms
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\client-issuance-ul-oob.xrm-ms
	cscript slmgr.vbs /ilc "%OfficePath%\root\Licenses16\pkeyconfig-office.xrm-ms
)
 if %win% LSS 9200 (
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\ProPlus2019VL_KMS_Client_AE-ppd.xrm-ms"
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\ProPlus2019VL_KMS_Client_AE-ul.xrm-ms"
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\ProPlus2019VL_KMS_Client_AE-ul-oob.xrm-ms"


	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\client-issuance-bridge-office.xrm-ms
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\client-issuance-root.xrm-ms
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\client-issuance-root-bridge-test.xrm-ms
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\client-issuance-stil.xrm-ms
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\client-issuance-ul.xrm-ms
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\client-issuance-ul-oob.xrm-ms
	cscript "%OfficePath%\Office16\ospp.vbs" /inslic:"%OfficePath%\root\Licenses16\pkeyconfig-office.xrm-ms
)

cscript "%OfficePath%\Office16\ospp.vbs" /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
cscript "%OfficePath%\Office16\ospp.vbs" /act

echo.
echo Retail to Volume License conversion finished.
echo.
pause


  • Turn off KMS Client Online AVS Valdation
 Windows Registry Editor Version 5.00
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform]
 "NoGenTicket"=dword:00000001
  • Activate
cd "\Program Files\Microsoft Office\Office16"
cd "\Program Files (x86)\Microsoft Office\Office16"
cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
cscript ospp.vbs /sethst:kms.example.com
cscript ospp.vbs /act
cscript ospp.vbs /dstatusall

Office 2021 ProPlus Retail

  • Assicurarsi di aver installato la 2021 ProPlus (non professional) Retail
  • Usare lo script
@echo off
echo Change kms.example.com to KMS Server IP or Host 
pause
REM Change ProgramFiles to ProgramFiles(x86) If install x86 version . Default are x64 

Title Converter Office 2021 Retail to Volume And Activate Through KMS Server

set LICPATH=%ProgramFiles%\Microsoft Office\root\Licenses16
set LICPATH1=%ProgramFiles%\Microsoft Office\Office16

cd C:\Windows\System32

cscript slmgr.vbs /ilc "%LICPATH%\ProPlusVL_KMS_Client-ppd.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\ProPlusVL_KMS_Client-ul.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\ProPlusVL_KMS_Client-ul-oob.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-bridge-office.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-root.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-root-bridge-test.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-stil.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-ul.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\client-issuance-ul-oob.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\pkeyconfig-office.xrm-ms"
cscript slmgr.vbs /ipk FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH 

cscript "%LICPATH1%\ospp.vbs" /sethst:kms.example.com
cscript "%LICPATH1%\ospp.vbs" /act

echo.
echo Finished.
echo.
pause

Riferimenti