mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-10-02 21:01:11 +02:00
Compare commits
4 Commits
dba7213a91
...
5e2cc4f5cf
Author | SHA1 | Date | |
---|---|---|---|
|
5e2cc4f5cf | ||
|
c619a2c381 | ||
|
9c09432b01 | ||
|
e476ac66a4 |
@ -143,6 +143,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected; activation is not supported.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 6001 (
|
if %winbuild% LSS 6001 (
|
||||||
%nceline%
|
%nceline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
@ -4497,7 +4507,7 @@ echo Checking Internet Connection [Connected!ping_f!]
|
|||||||
) else (
|
) else (
|
||||||
if /i %_actmethod%==Auto if not %_actman%==1 set tsmethod=KMS4k
|
if /i %_actmethod%==Auto if not %_actman%==1 set tsmethod=KMS4k
|
||||||
if /i !tsmethod!==KMS4k (
|
if /i !tsmethod!==KMS4k (
|
||||||
call :dk_color %Gray% "Checking Internet Connection [Not Connected]"
|
call :dk_color %Red% "Checking Internet Connection [Not Connected]"
|
||||||
call :dk_color %Blue% "Switching To KMS4k activation because Internet is needed for StaticCID method."
|
call :dk_color %Blue% "Switching To KMS4k activation because Internet is needed for StaticCID method."
|
||||||
) else (
|
) else (
|
||||||
set error=1
|
set error=1
|
||||||
@ -5744,6 +5754,11 @@ if %_actman%==0 (if not defined error call :dk_color %Blue% "%_fixmsg%")
|
|||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
) else (
|
) else (
|
||||||
|
if /i %tsmethod%==KMS4k if %winbuild% GEQ 26200 (
|
||||||
|
echo:
|
||||||
|
call :dk_color %Gray% "In Windows settings, you may see a renewal notification for activation that can be ignored."
|
||||||
|
if /i %_actmethod%==Auto call :dk_color %Gray% "To avoid this notification, run the script with an internet connection to use the StaticCID method."
|
||||||
|
)
|
||||||
echo "%tsids%" | find /i "7e94be23-b161-4956-a682-146ab291774c" %nul1% && (
|
echo "%tsids%" | find /i "7e94be23-b161-4956-a682-146ab291774c" %nul1% && (
|
||||||
call :dk_color %Gray% "Windows Update can receive 1-3 years of ESU. 4-6 years ESU is not officially supported, but you can manually install updates."
|
call :dk_color %Gray% "Windows Update can receive 1-3 years of ESU. 4-6 years ESU is not officially supported, but you can manually install updates."
|
||||||
)
|
)
|
||||||
@ -12387,6 +12402,11 @@ echo Removing the Added Specific KMS Host [Successful]
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if defined _k38 if %winbuild% GEQ 26200 (
|
||||||
|
call :dk_color %Gray% "In Windows settings, you may see a renewal notification for activation that can be ignored."
|
||||||
|
call :dk_color %Gray% "To avoid this notification, please use the HWID or TSforge activation options in the main menu."
|
||||||
|
)
|
||||||
|
|
||||||
:: clipup.exe does not exist in server cor and acor editions by default, it was copied there with this script
|
:: clipup.exe does not exist in server cor and acor editions by default, it was copied there with this script
|
||||||
|
|
||||||
if defined a_cor if exist "%_clipup%" del /f /q "%_clipup%" %nul%
|
if defined a_cor if exist "%_clipup%" del /f /q "%_clipup%" %nul%
|
||||||
|
@ -173,6 +173,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected; activation is not supported.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 10240 (
|
if %winbuild% LSS 10240 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
|
@ -175,6 +175,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected; activation is not required.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 14393 (
|
if %winbuild% LSS 14393 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
@ -827,6 +837,11 @@ echo Removing the Added Specific KMS Host [Successful]
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if defined _k38 if %winbuild% GEQ 26200 (
|
||||||
|
call :dk_color %Gray% "In Windows settings, you may see a renewal notification for activation that can be ignored."
|
||||||
|
call :dk_color %Gray% "To avoid this notification, please use the HWID or TSforge activation options in the main menu."
|
||||||
|
)
|
||||||
|
|
||||||
:: clipup.exe does not exist in server cor and acor editions by default, it was copied there with this script
|
:: clipup.exe does not exist in server cor and acor editions by default, it was copied there with this script
|
||||||
|
|
||||||
if defined a_cor if exist "%_clipup%" del /f /q "%_clipup%" %nul%
|
if defined a_cor if exist "%_clipup%" del /f /q "%_clipup%" %nul%
|
||||||
|
@ -173,6 +173,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected; activation is not required.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 6001 (
|
if %winbuild% LSS 6001 (
|
||||||
%nceline%
|
%nceline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
|
@ -204,6 +204,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected; activation is not required.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 6001 (
|
if %winbuild% LSS 6001 (
|
||||||
%nceline%
|
%nceline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
|
@ -219,6 +219,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected; activation is not required.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 6001 (
|
if %winbuild% LSS 6001 (
|
||||||
%nceline%
|
%nceline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
@ -674,7 +684,7 @@ echo Checking Internet Connection [Connected!ping_f!]
|
|||||||
) else (
|
) else (
|
||||||
if /i %_actmethod%==Auto if not %_actman%==1 set tsmethod=KMS4k
|
if /i %_actmethod%==Auto if not %_actman%==1 set tsmethod=KMS4k
|
||||||
if /i !tsmethod!==KMS4k (
|
if /i !tsmethod!==KMS4k (
|
||||||
call :dk_color %Gray% "Checking Internet Connection [Not Connected]"
|
call :dk_color %Red% "Checking Internet Connection [Not Connected]"
|
||||||
call :dk_color %Blue% "Switching To KMS4k activation because Internet is needed for StaticCID method."
|
call :dk_color %Blue% "Switching To KMS4k activation because Internet is needed for StaticCID method."
|
||||||
) else (
|
) else (
|
||||||
set error=1
|
set error=1
|
||||||
@ -1921,6 +1931,11 @@ if %_actman%==0 (if not defined error call :dk_color %Blue% "%_fixmsg%")
|
|||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
) else (
|
) else (
|
||||||
|
if /i %tsmethod%==KMS4k if %winbuild% GEQ 26200 (
|
||||||
|
echo:
|
||||||
|
call :dk_color %Gray% "In Windows settings, you may see a renewal notification for activation that can be ignored."
|
||||||
|
if /i %_actmethod%==Auto call :dk_color %Gray% "To avoid this notification, run the script with an internet connection to use the StaticCID method."
|
||||||
|
)
|
||||||
echo "%tsids%" | find /i "7e94be23-b161-4956-a682-146ab291774c" %nul1% && (
|
echo "%tsids%" | find /i "7e94be23-b161-4956-a682-146ab291774c" %nul1% && (
|
||||||
call :dk_color %Gray% "Windows Update can receive 1-3 years of ESU. 4-6 years ESU is not officially supported, but you can manually install updates."
|
call :dk_color %Gray% "Windows Update can receive 1-3 years of ESU. 4-6 years ESU is not officially supported, but you can manually install updates."
|
||||||
)
|
)
|
||||||
|
@ -135,6 +135,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 7600 (
|
if %winbuild% LSS 7600 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
|
@ -140,6 +140,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 7600 (
|
if %winbuild% LSS 7600 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
|
@ -134,6 +134,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto done2
|
goto done2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto done2
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 6001 (
|
if %winbuild% LSS 6001 (
|
||||||
%nceline%
|
%nceline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
|
@ -135,6 +135,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble
|
|||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if exist "%Systemdrive%\Users\WDAGUtilityAccount" (
|
||||||
|
sc query gcs | find /i "RUNNING" %nul% && (
|
||||||
|
%eline%
|
||||||
|
echo Windows Sandbox detected.
|
||||||
|
echo The script cannot run due to missing licensing components. Aborting...
|
||||||
|
echo:
|
||||||
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
if %winbuild% LSS 6001 (
|
if %winbuild% LSS 6001 (
|
||||||
%nceline%
|
%nceline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
|
Loading…
Reference in New Issue
Block a user