Windows 10 Enterprise not activating from KMS_VL_ALL

Discussion in 'Windows 10' started by bingbong810, Jul 18, 2019.

Thread Status:
Not open for further replies.
  1. bingbong810

    bingbong810 MDL Novice

    Jul 18, 2019
    1
    0
    0
    #1 bingbong810, Jul 18, 2019
    Last edited by a moderator: Jul 18, 2019
    Followed the "automated" method in the readme. Here is my debug log pastebin.com/TRBq1g8F (sorry, I can't post links):

    Code:
    >if 1 EQU 0 if 1 EQU 0 (echo. & echo Both Windows and Office activations are OFF...  & goto :END )
    >set AUR=0
    >if exist "C:\Windows\system32\SppExtComObj*.dll" (dir /b /al "C:\Windows\system32\SppExtComObjHook.dll"    || set AUR=1 )
    File Not Found
    >if 0 EQU 1 (set AUR=1 )
    >if 0 EQU 0 (set KMS_IP=172.16.0.2 )
    >if 1 EQU 0 (
    set KMS_ActivationInterval=43200
     set KMS_RenewalInterval=43200
    )
    >if 0 EQU 1 (color 8F  & set "mode=External ^(172.16.0.2^)" )  else (if 1 EQU 0 (color 1F  & set "mode=Manual" )  else (color 07  & set "mode=Auto Renewal" ) )
    >if 0 EQU 0 (if 1 EQU 0 (title KMS_VL_ALL )  else (title KMS_VL_ALL Auto Renewal ) )
    >set xOS=x64
    >if /I "AMD64" == "x86" (if not defined PROCESSOR_ARCHITEW6432 set xOS=Win32 )
    >set "IFEO=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options"
    >set "OSPP=SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform"
    >set "SPPk=SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform"
    >wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%') get Name    | findstr /i Windows    && (set SppHook=1 )  || (set SppHook=0 )
    No Instance(s) Available.
    
    >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=17134
    >if 17134 GEQ 9200 (set OSType=Win8 )  else if 17134 GEQ 7600 (set OSType=Win7 )  else (goto :UnsupportedVersion )
    >if 17134 GEQ 9600 (reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /f /v NoGenTicket /t REG_DWORD /d 1  )
    The operation completed successfully.
    
    >SET Win10Gov=0
    >IF 17134 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-EnterpriseEvalEdition~31bf3856ad364e35~amd64~~10.0.17134.1" /v "CurrentState"    | FIND /I "0x70"    && (FOR /F "TOKENS=3 DELIMS=-~" %B IN ('ECHO Microsoft-Windows-EnterpriseEvalEdition~31bf3856ad364e35~amd64~~10.0.17134.1') DO SET "EditionPKG=%B" ) )
        CurrentState    REG_DWORD    0x70
    >SET "EditionPKG=EnterpriseEvalEdition"
    >IF /I "Edition" == "Edition" (SET "EditionID=EnterpriseEval" )  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" ') DO IF NOT ERRORLEVEL 1 SET "EditionWMI=%A"
    >IF NOT ERRORLEVEL 1 SET "EditionWMI=EnterpriseEval
    "
    >IF NOT DEFINED EditionWMI (
    IF 17134 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 IoTEnterprise IoTEnterpriseS ProfessionalSingleLanguage ProfessionalCountrySpecific) DO (IF /I "EnterpriseEval" == "%A" GOTO :Main )
    >(IF /I "EnterpriseEval" == "Cloud" GOTO :Main )
    >(IF /I "EnterpriseEval" == "CloudN" GOTO :Main )
    >(IF /I "EnterpriseEval" == "IoTEnterprise" GOTO :Main )
    >(IF /I "EnterpriseEval" == "IoTEnterpriseS" GOTO :Main )
    >(IF /I "EnterpriseEval" == "ProfessionalSingleLanguage" GOTO :Main )
    >(IF /I "EnterpriseEval" == "ProfessionalCountrySpecific" GOTO :Main )
    >SET EditionID=EnterpriseEval
    >FOR %A IN (EnterpriseG EnterpriseGN) DO (IF /I "EnterpriseEval" == "%A" SET Win10Gov=1 )
    >(IF /I "EnterpriseEval" == "EnterpriseG" SET Win10Gov=1 )
    >(IF /I "EnterpriseEval" == "EnterpriseGN" SET Win10Gov=1 )
    >echo.
    
    >echo Activation Mode: Auto Renewal
    Activation Mode: Auto Renewal
    >if 1 EQU 0 if not exist "!_work!\bin\!xOS!.dll" goto :E_DLL
    >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 EQU 0 call :InstallHook
    >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 :eek:fficeLoc %A
    >call :eek:fficeLoc 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>"!_temp!\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" "!_temp!\c2rchk.txt"    && set loc_off14=1
     findstr /I /C:"%aRetail" "!_temp!\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 :eek:fficeLoc 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>"!_temp!\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" "!_temp!\c2rchk.txt"    && set loc_off15=1
     findstr /I /C:"%aRetail" "!_temp!\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 :eek:fficeLoc 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>"!_temp!\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" "!_temp!\c2rchk.txt"    && set loc_off16=1
     findstr /I /C:"%aRetail" "!_temp!\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 :eek:fficeLoc 19
    >set loc_off19=0
    >if 19 EQU 19 (
    if defined _C2R reg query  /v ProductReleaseIds    | findstr 2019    && set loc_off19=1
     exit /b
    )
    >if 1 EQU 1 if 0 EQU 0 (
    if 17134 GEQ 9200 call :UpdateIFEOEntry SppExtComObj.exe
     if 17134 LSS 9200 call :UpdateIFEOEntry sppsvc.exe
     call :UpdateIFEOEntry osppsvc.exe
    )
    >reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /v KMS_Emulation    || goto :eof
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe
        KMS_Emulation    REG_DWORD    0x1
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_ActivationInterval /t REG_DWORD /d 120
    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 10080
    The operation completed successfully.
    
    >if /I SppExtComObj.exe EQU SppExtComObj.exe if 17134 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.
    
    >if /I SppExtComObj.exe EQU osppsvc.exe (
    reg add "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" /f /v KeyManagementServiceName /t REG_SZ /d 172.16.0.2 
     reg add "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" /f /v KeyManagementServicePort /t REG_SZ /d 1688
    )
    >goto :eof
    >reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osppsvc.exe" /v KMS_Emulation    || goto :eof
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osppsvc.exe
        KMS_Emulation    REG_DWORD    0x1
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osppsvc.exe" /f /v KMS_ActivationInterval /t REG_DWORD /d 120
    The operation completed successfully.
    
    >reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osppsvc.exe" /f /v KMS_RenewalInterval /t REG_DWORD /d 10080
    The operation completed successfully.
    
    >if /I osppsvc.exe EQU SppExtComObj.exe if 17134 GEQ 9600 reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osppsvc.exe" /f /v KMS_HWID /t REG_QWORD /d "0x3A1C049600B60076"
    >if /I osppsvc.exe EQU osppsvc.exe (
    reg add "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" /f /v KeyManagementServiceName /t REG_SZ /d 172.16.0.2 
     reg add "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform" /f /v KeyManagementServicePort /t REG_SZ /d 1688
    )
    The operation completed successfully.
    The operation completed successfully.
    
    >goto :eof
    >if 1 EQU 1 if 0 EQU 1 (call :UpdateOSPPEntry osppsvc.exe )
    >call :SPP
    >set spp=SoftwareLicensingProduct
    >set sps=SoftwareLicensingService
    >set W1nd0ws=1
    >set WinPerm=0
    >set WinVL=0
    >set Off1ce=0
    >if 17134 GEQ 9200 if 1 NEQ 0 (
    call :sppoff
     if !Off1ce! EQU 0 (echo. & echo !aword! Office 2013/2016/2019 Product Detected... )
    )
    >set spp_off15=0  & set spp_off16=0  & set spp_off19=0
    >wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%') get Name  1>"!_temp!\sppchk.txt" 2>&1
    >find /i "Office 15" "!_temp!\sppchk.txt"    && (set spp_off15=1 )
    ---------- C:\WINDOWS\TEMP\SPPCHK.TXT
    >find /i "Office 16" "!_temp!\sppchk.txt"    && (set spp_off16=1 )
    ---------- C:\WINDOWS\TEMP\SPPCHK.TXT
    >find /i "Office 19" "!_temp!\sppchk.txt"    && (set spp_off19=1 )
    ---------- C:\WINDOWS\TEMP\SPPCHK.TXT
    >for %A in (15 16 19) do if !loc_off%A! EQU 0 set spp_off%A=0
    >if !loc_off15! EQU 0 set spp_off15=0
    >if !loc_off16! EQU 0 set spp_off16=0
    >if !loc_off19! EQU 0 set spp_off19=0
    >set loc_offgl=1
    >if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 (set loc_offgl=0 )
    >if 0 EQU 1 set Off1ce=1
    >set spp_offgl=1
    >if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 (set spp_offgl=0 )
    >if 0 EQU 0 (
    set Off1ce=0
     if 0 EQU 0 set "aword=No Installed"
     if 0 EQU 1 set "aword=No Supported KMS Client"
    )
    >exit /b
    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... )
    No Instance(s) Available.
    
    No Supported KMS Client Windows Detected...
    >if 0 EQU 0 if 0 EQU 0 exit /b
    >if 1 NEQ 0 call :OSPP
    >set spp=OfficeSoftwareProtectionProduct
    >set sps=OfficeSoftwareProtectionService
    >if 17134 LSS 9200 (set "aword=2010/2013/2016/2019" )  else (set "aword=2010" )
    >if 0 NEQ 1 (echo. & echo No Installed Office 2010 Product Detected...  & exit /b )
    No Installed Office 2010 Product Detected...
    >if 1 EQU 0 (echo. & echo Office activation is OFF... )
    >if exist "!_temp!\*chk.txt" del /f /q "!_temp!\*chk.txt"
    >if exist "!_temp!\slmgr.vbs" del /f /q "!_temp!\slmgr.vbs"
    >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 EQU 0 call :UninstallHook
    >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                : 1188
            FLAGS              :
    >echo.
    
    >goto :END
    >echo.
    
    >if 0 EQU 0 echo Press any key to exit.
    Press any key to exit.
    >goto :eof


    Let me know what other info you need from me.
     
  2. Krakatoa

    Krakatoa MDL Addicted

    Feb 22, 2011
    666
    1,083
    30
    EnterpriseEval is not supported.
    Install Enterprise.
    (But Home will suffice for you.)
     
  3. Yen

    Yen Admin
    Staff Member

    May 6, 2007
    13,081
    13,977
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...