Need your help guys some weird error with license.

Discussion in 'Windows 10' started by x58haze, Nov 20, 2018.

  1. x58haze

    x58haze MDL Junior Member

    Feb 7, 2017
    65
    17
    0
  2. MELERIX

    MELERIX MDL Expert

    Nov 7, 2011
    1,217
    653
    60
    better upgrade to LTSC.
     
  3. John Sutherland

    John Sutherland MDL Addicted

    Oct 15, 2014
    867
    1,388
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,026
    93,874
    450
    1. What is a pre-activated key?
     
  5. x58haze

    x58haze MDL Junior Member

    Feb 7, 2017
    65
    17
    0
    By pre-activated key, is that on fresh install it says activated already, and the license last 6 months, my license haven't expired yet.

    And what is LTSC?
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,026
    93,874
    450
  7. x58haze

    x58haze MDL Junior Member

    Feb 7, 2017
    65
    17
    0
    Yeah i don't remember quite good but was on first september that i asked for help here, and then i remember
    I downloaded something called SFV2ISO to make full the LTSB windows 10, then I downloaded apart a file called KMS_VL_ALL-SppExtComObjPatcher-kms-25.7z , which contains a $OEM$ folder, then i just copy that folder into the Pendrive windows 10, under SOURCE, and with that my windows was like pre-activated for 6 months, that was on september 1.

    But yeah Enthousiast i have a question , does that LTSC version is much better than the LTSB windows 10? like light, less bloatwares?
    I'm very worried about my pc, i did a prime95 test 1hour with blend feature to test some rams, running HWINFO64 <-- and while running that 1 hour it created a CSV file, also i checked temperatures and voltages and all they were fine i think.
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,026
    93,874
    450
    Imho there is no bloatware.

    So, it was not a key but a KMS solution, probably the AV hase deleted it, so check the AV logs and quarantine for information, or just directly reinstall the most current KMS_VL_ALL v28 by @abbodi1406 (make sure the AV excludes it from being scanned).
     
  9. x58haze

    x58haze MDL Junior Member

    Feb 7, 2017
    65
    17
    0
    By AV you refers to antivirus? cause I don't use it, but ill try that KMS_VL_ALL v28, cause windows reminds activated with a key.
     
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,026
    93,874
    450
  11. x58haze

    x58haze MDL Junior Member

    Feb 7, 2017
    65
    17
    0
    Done i did the QT and that create a file in the desktop, should i copy the text inside, and post in that thread u gave me? or can i just simple copy-paste here in my own thread? with code tags?
    Sorry sometimes i ask twice cause im slow sometimes in understand things, also my english is not helping ^^,
     
  12. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,026
    93,874
    450
    You can copy/paste here, just use code tags, it will read better for us.
     
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,026
    93,874
    450
  14. x58haze

    x58haze MDL Junior Member

    Feb 7, 2017
    65
    17
    0
    Here are the results:

    Code:
    >set KMS_Emulation=1
    
    >set KMS_IP=172.16.0.2
    
    >set KMS_Port=1688
    
    >set KMS_ActivationInterval=43200
    
    >set KMS_RenewalInterval=43200
    
    >set KMS_HWID=0x3A1C049600B60076
    
    >set Windows=Random
    
    >set Office2010=Random
    
    >set Office2013=Random
    
    >set Office2016=Random
    
    >set Office2019=Random
    
    >color 1F
    
    >title KMS_VL_ALL Manual
    
    >setlocal EnableExtensions EnableDelayedExpansion
    
    >cd /d "C:\Users\Ryzen-user\Desktop\New folder (4)\SppExtComObjPatcher-kms2\"
    
    >IF /I "AMD64" EQU "AMD64" (set xOS=x64 )  else (set xOS=Win32 )
    
    >set "IFEO=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options"
    
    >set "OSPP=HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform"
    
    >set "SPPk=SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform"
    
    >wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%') get Name   2>nul  | findstr /i Windows   1>nul  && (set SppHook=1 )  || (set SppHook=0 )
    
    >wmic path OfficeSoftwareProtectionService get Version    && (set OsppHook=1 )  || (set OsppHook=0 )
    ERROR:
    
    Description = Not found
    
    
    >for /F "tokens=6 delims=[]. " %G in ('ver') do set winbuild=%G
    
    >set winbuild=14393
    
    >if 14393 GEQ 9200 (set OSType=Win8 )  else if 14393 GEQ 7600 (set OSType=Win7 )  else (goto :UnsupportedVersion )
    
    >if 14393 GEQ 9600 (reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v NoGenTicket /t REG_DWORD /d 1 /f  )
    The operation completed successfully.
    
    
    >if 14393 LSS 14393 goto :Main
    
    >SET "RegKey=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages"
    
    >SET "Pattern=Microsoft-Windows-*Edition~31bf3856ad364e35"
    
    >SET "EditionPKG=NUL"
    
    >FOR /F "TOKENS=8 DELIMS=\" %A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" /f "Microsoft-Windows-*Edition~31bf3856ad364e35" /k | FIND /I "CurrentVersion"') DO (REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%A" /v "CurrentState"    | FIND /I "0x70"    && (FOR /F "TOKENS=3 DELIMS=-~" %B IN ('ECHO %A') DO SET "EditionPKG=%B" ) )
    
    >(REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.14393.0" /v "CurrentState"    | FIND /I "0x70"    && (FOR /F "TOKENS=3 DELIMS=-~" %B IN ('ECHO Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.14393.0') DO SET "EditionPKG=%B" ) )
        CurrentState    REG_DWORD    0x70
    
    >SET "EditionPKG=EnterpriseSEdition"
    
    >IF /I "Edition" == "Edition" (SET "EditionID=EnterpriseS" )  ELSE (FOR /F "TOKENS=3 DELIMS=: " %A IN ('DISM /English /Online /Get-CurrentEdition | FIND /I "Current Edition :"') DO SET "EditionID=%A" )
    
    >FOR /F "TOKENS=2 DELIMS==" %A IN ('"WMIC PATH SoftwareLicensingProduct WHERE (Name LIKE 'Windows%' AND PartialProductKey is not NULL) GET LicenseFamily /VALUE" 2>nul') DO IF NOT ERRORLEVEL 1 SET "EditionWMI=%A"
    
    >IF NOT ERRORLEVEL 1 SET "EditionWMI=EnterpriseS
    "
    
    >IF NOT DEFINED EditionWMI (
    IF 14393 GEQ 17063 FOR /F "SKIP=2 TOKENS=3 DELIMS= " %A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionId') DO SET "EditionID=%A" 
     GOTO :Main
    )
    
    >FOR %A IN (Cloud CloudN) DO (IF /I "EnterpriseS" == "%A" GOTO :Main )
    
    >(IF /I "EnterpriseS" == "Cloud" GOTO :Main )
    
    >(IF /I "EnterpriseS" == "CloudN" GOTO :Main )
    
    >SET EditionID=EnterpriseS
    
    >call :StopService sppsvc
    
    >sc query sppsvc   | find /i "STOPPED"    || net stop sppsvc /y 
    The Software Protection service is stopping.
    The Software Protection service was stopped successfully.
    
    
    >sc query sppsvc   | find /i "STOPPED"    || sc stop sppsvc 
            STATE              : 1  STOPPED
    
    >goto :eof
    
    >if 0 NEQ 0 call :StopService osppsvc
    
    >if exist "C:\Windows\system32\SppExtComObjHook.dll" del /f /q "C:\Windows\system32\SppExtComObjHook.dll" 
    
    >if exist "C:\Windows\system32\SppExtComObjPatcher.*" del /f /q "C:\Windows\system32\SppExtComObjPatcher.*" 
    
    >set AclReset=0
    
    >for %A in ("x64\SppExtComObjHook.dll") do set "PatcherPath=%~fA"
    
    >set "PatcherPath=C:\Users\Ryzen-user\Desktop\New folder (4)\SppExtComObjPatcher-kms2\x64\SppExtComObjHook.dll"
    
    >mklink "C:\Windows\system32\SppExtComObjHook.dll" "C:\Users\Ryzen-user\Desktop\New folder (4)\SppExtComObjPatcher-kms2\x64\SppExtComObjHook.dll" 
    symbolic link created for C:\Windows\system32\SppExtComObjHook.dll <<===>> C:\Users\Ryzen-user\Desktop\New folder (4)\SppExtComObjPatcher-kms2\x64\SppExtComObjHook.dll
    
    >icacls "C:\Windows\system32\SppExtComObjHook.dll" /findsid *S-1-5-32-545    | find /i "SppExtComObjHook.dll"    || (
    set AclReset=1 
     icacls "C:\Windows\system32\SppExtComObjHook.dll" /grant *S-1-5-32-545:RX 
    )
    processed file: C:\Windows\system32\SppExtComObjHook.dll
    Successfully processed 1 files; Failed processing 0 files
    
    >if Win8 EQU Win8 call :CreateIFEOEntry SppExtComObj.exe
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Debugger /t REG_SZ /d "rundll32.exe SppExtComObjHook.dll,PatcherMain" 
    The operation completed successfully.
    
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_Emulation /t REG_DWORD /d 1 
    The operation completed successfully.
    
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_ActivationInterval /t REG_DWORD /d 43200 
    The operation completed successfully.
    
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_RenewalInterval /t REG_DWORD /d 43200 
    The operation completed successfully.
    
    
    >if /I SppExtComObj.exe NEQ osppsvc.exe (
    reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Windows /t REG_SZ /d "Random"   
     if 14393 GEQ 9200 for %A in (2013 2016 2019) do reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Office%A /t REG_SZ /d "!Office%A!" 
    )
    The operation completed successfully.
    
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Office2013 /t REG_SZ /d "!Office2013!" 
    The operation completed successfully.
    
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Office2016 /t REG_SZ /d "!Office2016!" 
    The operation completed successfully.
    
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Office2019 /t REG_SZ /d "!Office2019!" 
    The operation completed successfully.
    
    
    >if /I SppExtComObj.exe EQU osppsvc.exe (
    reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Office2010 /t REG_SZ /d "Random"   
     if 14393 LSS 9200 for %A in (2013 2016 2019) do reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Office%A /t REG_SZ /d "!Office%A!" 
    )
    
    >if /I SppExtComObj.exe EQU SppExtComObj.exe if 14393 GEQ 9600 (reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_HWID /t REG_QWORD /d "0x3A1C049600B60076"  )
    The operation completed successfully.
    
    
    >goto :eof
    
    >if Win8 EQU Win7 if 1 NEQ 0 call :CreateIFEOEntry sppsvc.exe
    
    >if 0 NEQ 0 call :CreateIFEOEntry osppsvc.exe
    
    >reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds    && set "_C2R=HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
    ERROR: The system was unable to find the specified registry key or value.
    
    >if not defined _C2R reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds    && set "_C2R=HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun\Configuration"
    ERROR: The system was unable to find the specified registry key or value.
    
    >for %A in (14 15 16 19) do call :officeLoc %A
    
    >call :officeLoc 14
    
    >set loc_off14=0
    
    >if 14 EQU 19 (
    if defined _C2R reg query  /v ProductReleaseIds    | findstr 2019    && set loc_off14=1 
     exit /b
    )
    
    >for /F "tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set loc_off14=1
    ERROR: The system was unable to find the specified registry key or value.
    
    >for /F "tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set loc_off14=1
    ERROR: The system was unable to find the specified registry key or value.
    
    >if 14 EQU 16 if defined _C2R (
    for /F "skip=2 tokens=2*" %a in ('reg query /v ProductReleaseIds') do echo %b 1>c2rchk.txt 
     for %a in (Mondo ProPlus Standard ProjectProX ProjectStdX ProjectPro ProjectStd VisioProX VisioStdX VisioPro VisioStd Access Excel OneNote Outlook PowerPoint Publisher SkypeforBusiness Word) do (
    findstr /I /C:"%aVolume" c2rchk.txt    && set loc_off14=1 
     findstr /I /C:"%aRetail" c2rchk.txt    && set loc_off14=1
    ) 
     exit /b
    )
    
    >if exist "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" set loc_off14=1
    
    >if exist "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" set loc_off14=1
    
    >exit /b
    
    >call :officeLoc 15
    
    >set loc_off15=0
    
    >if 15 EQU 19 (
    if defined _C2R reg query  /v ProductReleaseIds    | findstr 2019    && set loc_off15=1 
     exit /b
    )
    
    >for /F "tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\15.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set loc_off15=1
    ERROR: The system was unable to find the specified registry key or value.
    
    >for /F "tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set loc_off15=1
    ERROR: The system was unable to find the specified registry key or value.
    
    >if 15 EQU 16 if defined _C2R (
    for /F "skip=2 tokens=2*" %a in ('reg query /v ProductReleaseIds') do echo %b 1>c2rchk.txt 
     for %a in (Mondo ProPlus Standard ProjectProX ProjectStdX ProjectPro ProjectStd VisioProX VisioStdX VisioPro VisioStd Access Excel OneNote Outlook PowerPoint Publisher SkypeforBusiness Word) do (
    findstr /I /C:"%aVolume" c2rchk.txt    && set loc_off15=1 
     findstr /I /C:"%aRetail" c2rchk.txt    && set loc_off15=1
    ) 
     exit /b
    )
    
    >if exist "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" set loc_off15=1
    
    >if exist "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS" set loc_off15=1
    
    >exit /b
    
    >call :officeLoc 16
    
    >set loc_off16=0
    
    >if 16 EQU 19 (
    if defined _C2R reg query  /v ProductReleaseIds    | findstr 2019    && set loc_off16=1 
     exit /b
    )
    
    >for /F "tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\16.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set loc_off16=1
    ERROR: The system was unable to find the specified registry key or value.
    
    >for /F "tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set loc_off16=1
    ERROR: The system was unable to find the specified registry key or value.
    
    >if 16 EQU 16 if defined _C2R (
    for /F "skip=2 tokens=2*" %a in ('reg query /v ProductReleaseIds') do echo %b 1>c2rchk.txt 
     for %a in (Mondo ProPlus Standard ProjectProX ProjectStdX ProjectPro ProjectStd VisioProX VisioStdX VisioPro VisioStd Access Excel OneNote Outlook PowerPoint Publisher SkypeforBusiness Word) do (
    findstr /I /C:"%aVolume" c2rchk.txt    && set loc_off16=1 
     findstr /I /C:"%aRetail" c2rchk.txt    && set loc_off16=1
    ) 
     exit /b
    )
    
    >if exist "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" set loc_off16=1
    
    >if exist "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" set loc_off16=1
    
    >exit /b
    
    >call :officeLoc 19
    
    >set loc_off19=0
    
    >if 19 EQU 19 (
    if defined _C2R reg query  /v ProductReleaseIds    | findstr 2019    && set loc_off19=1 
     exit /b
    )
    
    >call :SPP
    
    >reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f" /f 
    ERROR: The system was unable to find the specified registry key or value.
    
    >reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f 
    ERROR: The system was unable to find the specified registry key or value.
    
    >set spp=SoftwareLicensingProduct
    
    >set sps=SoftwareLicensingService
    
    >set W1nd0ws=1
    
    >wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%') get Name    | findstr /i Office    && (set 0ff1ce15=1 )
    
    >if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 (set "0ff1ce15="  & set "aword=No Installed" )  else (set "aword=No Supported KMS Client" )
    
    >if not defined 0ff1ce15 if 14393 GEQ 9200 (echo. & echo No Installed Office 2013/2016/2019 Product Detected... )
    
    No Installed Office 2013/2016/2019 Product Detected...
    
    >wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%') get Name    | findstr /i Windows    && (set WinVL=1 )  || (echo. & echo No Supported KMS Client Windows Detected... )
    Windows(R), EnterpriseS edition 
    
    
    >if not defined 0ff1ce15 if not defined WinVL exit /b
    
    >wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' and PartialProductKey is not NULL) get Name    | findstr /i Windows    && (set gvlk=1 )  || (set gvlk=0 )
    Windows(R), EnterpriseS edition 
    
    
    >set gpr=0
    
    >if 14393 GEQ 10240 if 1 EQU 1 if 1 EQU 1 for /F "tokens=2 delims==" %A in ('"wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' and Name like 'Windows%' and PartialProductKey is not NULL) get GracePeriodRemaining /VALUE" ') do set "gpr=%A"
    
    >set "gpr=154275
    "
    
    >if 154275 NEQ 0 if 154275 GTR 259200 (
    set W1nd0ws=0 
     wmic path SoftwareLicensingProduct where "Description like '%KMSCLIENT%' and Name like 'Windows%' and PartialProductKey is not NULL" get LicenseFamily    | findstr /i EnterpriseG    && (set W1nd0ws=1 )
    )
    
    >for /F "tokens=2 delims==" %A in ('"wmic path SoftwareLicensingService get Version /VALUE"') do set ver=%A
    
    >set ver=10.0.14393.2430
     
    
    >wmic path SoftwareLicensingService where version='10.0.14393.2430' call SetKeyManagementServiceMachine MachineName="172.16.0.2" 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingService.Version="10.0.14393.2430")->SetKeyManagementServiceMachine()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >wmic path SoftwareLicensingService where version='10.0.14393.2430' call SetKeyManagementServicePort 1688 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingService.Version="10.0.14393.2430")->SetKeyManagementServicePort()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >for /F "tokens=2 delims==" %G in ('"wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' and Name like 'Windows%') get ID /VALUE"') do (set app=%G  & call :sppchkwin )
    
    >(set app=2d5a5a60-3040-48bf-beb0-fcd770c20ce0
      & call :sppchkwin )
    
    >set office=0
    
    >if 14393 GEQ 14393 if 1 EQU 0 wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' and PartialProductKey is not NULL) get Name    | findstr /i Windows    && (set gvlk=1 )
    
    >wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' get LicenseStatus    | findstr "1"    && (echo. & call :activate 2d5a5a60-3040-48bf-beb0-fcd770c20ce0  & exit /b )
    1             
    
    
    
    >wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' call ClearKeyManagementServiceMachine 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingProduct.ID="2d5a5a60-3040-48bf-beb0-fcd770c20ce0")->ClearKeyManagementServiceMachine()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' call ClearKeyManagementServicePort 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingProduct.ID="2d5a5a60-3040-48bf-beb0-fcd770c20ce0")->ClearKeyManagementServicePort()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >if 1 EQU 0 if 0 EQU 0 if SoftwareLicensingService EQU SoftwareLicensingService (
    wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' call SetKeyManagementServiceMachine MachineName="127.0.0.2"   
     wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' call SetKeyManagementServicePort 1688   
     for /F "tokens=2 delims==" %x in ('"wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' get Name /VALUE"') do echo Checking: %x 
     echo Product is KMS 2038 Activated. 
     exit /b
    )
    
    >for /F "tokens=2 delims==" %x in ('"wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' get Name /VALUE"') do echo Activating: %x
    
    >echo Activating: Windows(R), EnterpriseS edition
     
    Activating: Windows(R), EnterpriseS edition
    
    
    >wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' call Activate 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingProduct.ID="2d5a5a60-3040-48bf-beb0-fcd770c20ce0")->Activate()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >set ERRORCODE=0
    
    >if /I SoftwareLicensingService EQU SoftwareLicensingService wmic path SoftwareLicensingService where version='10.0.14393.2430' call RefreshLicenseStatus 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingService.Version="10.0.14393.2430")->RefreshLicenseStatus()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >for /F "tokens=2 delims==" %x in ('"wmic path SoftwareLicensingProduct where ID='2d5a5a60-3040-48bf-beb0-fcd770c20ce0' get GracePeriodRemaining /VALUE"') do (set gpr=%x  & set /a gpr2=%x/1440 )
    
    >(set gpr=259200
      & set /a gpr2=259200
    /1440 )
    
    >if 259200 EQU 43200 if 0 EQU 0 if 14393 GEQ 9200 (echo Windows Core/ProfessionalWMC Activation Successful  & echo Remaining Period: 30 days (259200 minutes)  & exit /b )
    
    >if 259200 EQU 64800 (echo Windows Core/ProfessionalWMC Activation Successful  & echo Remaining Period: 45 days (259200 minutes)  & exit /b )
    
    >if 259200 GTR 259200 (echo Windows 10 EnterpriseG/EnterpriseGN Activation Successful  & echo Remaining Period: 180 days (259200 minutes)  & exit /b )
    
    >if 259200 EQU 259200 (echo Product Activation Successful )  else (
    call cmd /c exit /b 0 
     echo Product Activation Failed: 0x00000000
    )
    Product Activation Successful
    
    >echo Remaining Period: 180 days (259200 minutes)
    Remaining Period: 180 days (259200 minutes)
    
    >exit /b
    
    >if defined 0ff1ce15 for /F "tokens=2 delims==" %G in ('"wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' and Name like 'Office%') get ID /VALUE"') do (set app=%G  & call :sppchkoff )
    
    >call :cKMS
    
    >wmic path SoftwareLicensingService where version='10.0.14393.2430' call ClearKeyManagementServiceMachine 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingService.Version="10.0.14393.2430")->ClearKeyManagementServiceMachine()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >wmic path SoftwareLicensingService where version='10.0.14393.2430' call ClearKeyManagementServicePort 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingService.Version="10.0.14393.2430")->ClearKeyManagementServicePort()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >wmic path SoftwareLicensingService where version='10.0.14393.2430' call DisableKeyManagementServiceDnsPublishing 1 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingService.Version="10.0.14393.2430")->DisableKeyManagementServiceDnsPublishing()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >wmic path SoftwareLicensingService where version='10.0.14393.2430' call DisableKeyManagementServiceHostCaching 1 
    Executing (\\MELODY-LOVE\root\cimv2:SoftwareLicensingService.Version="10.0.14393.2430")->DisableKeyManagementServiceHostCaching()
    
    Method execution successful.
    
    Out Parameters:
    instance of __PARAMETERS
    {
    };
    
    
    >if /I SoftwareLicensingService EQU SoftwareLicensingService (
    reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f" /f   
     reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f   
     reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f" /f   
     reg delete "HKEY_USERS\S-1-5-20\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f 
    )  else (
    reg delete "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform\59a52881-a989-479d-af46-f275c6370663" /f   
     reg delete "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f 
    )
    ERROR: The system was unable to find the specified registry key or value.
    ERROR: The system was unable to find the specified registry key or value.
    The operation completed successfully.
    
    ERROR: The system was unable to find the specified registry key or value.
    
    >goto :eof
    
    >exit /b
    
    >call :OSPP
    
    >reg delete "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform\59a52881-a989-479d-af46-f275c6370663" /f 
    ERROR: The system was unable to find the specified registry key or value.
    
    >reg delete "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f 
    ERROR: The system was unable to find the specified registry key or value.
    
    >set spp=OfficeSoftwareProtectionProduct
    
    >set sps=OfficeSoftwareProtectionService
    
    >if 14393 LSS 9200 (set "aword=2010/2013/2016/2019" )  else (set "aword=2010" )
    
    >wmic path OfficeSoftwareProtectionService get Version /VALUE    || (echo. & echo No Installed Office 2010 Product Detected...  & exit /b )
    ERROR:
    
    Description = Not found
    
    
    No Installed Office 2010 Product Detected...
    
    >del /f /q c2rchk.txt 
    Could Not Find C:\Users\Ryzen-user\Desktop\New folder (4)\SppExtComObjPatcher-kms2\c2rchk.txt
    
    >del /f /q sppchk.txt 
    Could Not Find C:\Users\Ryzen-user\Desktop\New folder (4)\SppExtComObjPatcher-kms2\sppchk.txt
    
    >del /f /q osppchk.txt 
    Could Not Find C:\Users\Ryzen-user\Desktop\New folder (4)\SppExtComObjPatcher-kms2\osppchk.txt
    
    >call :StopService sppsvc
    
    >sc query sppsvc   | find /i "STOPPED"    || net stop sppsvc /y 
    The Software Protection service is stopping.
    The Software Protection service was stopped successfully.
    
    
    >sc query sppsvc   | find /i "STOPPED"    || sc stop sppsvc 
            STATE              : 1  STOPPED
    
    >goto :eof
    
    >if 0 NEQ 0 call :StopService osppsvc
    
    >if 1 == 1 (icacls "C:\Windows\system32\SppExtComObjHook.dll" /reset  )
    processed file: C:\Windows\system32\SppExtComObjHook.dll
    Successfully processed 1 files; Failed processing 0 files
    
    >if exist "C:\Windows\system32\SppExtComObjHook.dll" del /f /q "C:\Windows\system32\SppExtComObjHook.dll" 
    
    >if Win8 EQU Win8 call :RemoveIFEOEntry SppExtComObj.exe
    
    >if /I SppExtComObj.exe NEQ osppsvc.exe (
    reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f   
     goto :eof
    )
    The operation completed successfully.
    
    
    >if Win8 EQU Win7 if 1 NEQ 0 call :RemoveIFEOEntry sppsvc.exe
    
    >if 0 NEQ 0 call :RemoveIFEOEntry osppsvc.exe
    
    >sc start sppsvc trigger=timer;sessionid=0 
    
    SERVICE_NAME: sppsvc
            TYPE               : 10  WIN32_OWN_PROCESS 
            STATE              : 2  START_PENDING
                                    (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x1
            WAIT_HINT          : 0x4e20
            PID                : 6724
            FLAGS              :
    
    >echo.
    
    
    >echo.
    
    
    >echo Press any key to exit...
    Press any key to exit...
    
    >if 1 EQU 0 pause  1>nul
    
    >exit /b
    
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,026
    93,874
    450
    Please post it in the mentioned thread, else @abbodi1406 maybe misses the post.