call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
)
seterror=1
setshowfix=1
)
::==============================
:: Check license and package files for the current edition
setosedition=0
setosedition=0
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
@ -1709,12 +2040,10 @@ if not defined notwinact (
if%osedition%==0 (
if%osedition%==0 (
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Blue%"Reboot your machine using the restart option to fix this error."
)
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
@ -1787,15 +2080,9 @@ if exist "%SysPath%\wlms\wlms.exe" (
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
:: If required services are not disabled or corrupted + if there is any error + SoftwareLicensingService errorlevel is not Zero + no fix was shown before
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
)
seterror=1
setshowfix=1
)
::==============================
:: Check license and package files for the current edition
setosedition=0
setosedition=0
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
@ -1393,12 +1724,10 @@ if not defined notwinact (
if%osedition%==0 (
if%osedition%==0 (
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Blue%"Reboot your machine using the restart option to fix this error."
)
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
@ -1471,15 +1764,9 @@ if exist "%SysPath%\wlms\wlms.exe" (
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
:: If required services are not disabled or corrupted + if there is any error + SoftwareLicensingService errorlevel is not Zero + no fix was shown before
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
)
seterror=1
setshowfix=1
)
::==============================
:: Check license and package files for the current edition
setosedition=0
setosedition=0
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
@ -1487,12 +1818,10 @@ if not defined notwinact (
if%osedition%==0 (
if%osedition%==0 (
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Blue%"Reboot your machine using the restart option to fix this error."
)
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
@ -1565,15 +1858,9 @@ if exist "%SysPath%\wlms\wlms.exe" (
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
:: If required services are not disabled or corrupted + if there is any error + SoftwareLicensingService errorlevel is not Zero + no fix was shown before
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
)
seterror=1
setshowfix=1
)
::==============================
:: Check license and package files for the current edition
setosedition=0
setosedition=0
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
@ -2075,12 +2406,10 @@ if not defined notwinact (
if%osedition%==0 (
if%osedition%==0 (
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Blue%"Reboot your machine using the restart option to fix this error."
)
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
@ -2153,15 +2446,9 @@ if exist "%SysPath%\wlms\wlms.exe" (
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
:: If required services are not disabled or corrupted + if there is any error + SoftwareLicensingService errorlevel is not Zero + no fix was shown before
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
)
seterror=1
setshowfix=1
)
::==============================
:: Check license and package files for the current edition
setosedition=0
setosedition=0
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
@ -3131,12 +3462,10 @@ if not defined notwinact (
if%osedition%==0 (
if%osedition%==0 (
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Blue%"Reboot your machine using the restart option to fix this error."
)
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
@ -3209,15 +3502,9 @@ if exist "%SysPath%\wlms\wlms.exe" (
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
:: If required services are not disabled or corrupted + if there is any error + SoftwareLicensingService errorlevel is not Zero + no fix was shown before
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
)
seterror=1
setshowfix=1
)
::==============================
:: Check license and package files for the current edition
setosedition=0
setosedition=0
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
if%_wmic%EQU 1 set"chkedi=for /f "tokens=2 delims=="%%a in ('"wmic path %spp% where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND LicenseDependsOn is NULL AND PartialProductKey IS NOT NULL) get LicenseFamily /VALUE"%nul6%')"
@ -3138,12 +3469,10 @@ if not defined notwinact (
if%osedition%==0 (
if%osedition%==0 (
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Red%"Checking Edition Name [Not Found In Registry]"
call:dk_color%Blue%"Reboot your machine using the restart option to fix this error."
)
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
@ -3216,15 +3509,9 @@ if exist "%SysPath%\wlms\wlms.exe" (
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
%psc%"Get-WmiObject -Query 'SELECT Description FROM SoftwareLicensingProduct WHERE PartialProductKey IS NOT NULL AND LicenseDependsOn IS NULL' | Select-Object -Property Description"%nul2%| findstr /i "KMS_"%nul1%||(
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
for/f"delims="%%a in('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -TaskPath '\Microsoft\Windows\SoftwareProtectionPlatform\').State"%nul6%') do (set taskinfo=%%a)
:: If required services are not disabled or corrupted + if there is any error + SoftwareLicensingService errorlevel is not Zero + no fix was shown before