From e476ac66a45db32b289179d7c016f2cd4ed4601a Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Sun, 3 Aug 2025 01:45:30 +0530 Subject: [PATCH] Detect Windows Sandbox --- MAS/All-In-One-Version-KL/MAS_AIO.cmd | 10 ++++++++++ .../Activators/HWID_Activation.cmd | 10 ++++++++++ .../Activators/KMS38_Activation.cmd | 10 ++++++++++ .../Activators/Ohook_Activation_AIO.cmd | 10 ++++++++++ .../Activators/Online_KMS_Activation.cmd | 10 ++++++++++ .../Activators/TSforge_Activation.cmd | 10 ++++++++++ MAS/Separate-Files-Version/Change_Office_Edition.cmd | 10 ++++++++++ MAS/Separate-Files-Version/Change_Windows_Edition.cmd | 10 ++++++++++ MAS/Separate-Files-Version/Extract_OEM_Folder.cmd | 10 ++++++++++ MAS/Separate-Files-Version/Troubleshoot.cmd | 10 ++++++++++ 10 files changed, 100 insertions(+) diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd index 16276f3..a64b2a6 100644 --- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd +++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd @@ -143,6 +143,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 ( %nceline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd index af45783..ff22690 100644 --- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd @@ -173,6 +173,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 10240 ( %eline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd index 91b6211..c27c2e3 100644 --- a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd @@ -175,6 +175,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 ( %eline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd index 5e85e08..0232316 100644 --- a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd +++ b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd @@ -173,6 +173,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 ( %nceline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd index 080b0eb..86571d2 100644 --- a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd @@ -204,6 +204,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 ( %nceline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd index 7f261e5..57939b5 100644 --- a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd @@ -219,6 +219,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 ( %nceline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Change_Office_Edition.cmd b/MAS/Separate-Files-Version/Change_Office_Edition.cmd index 58ac14d..006c98d 100644 --- a/MAS/Separate-Files-Version/Change_Office_Edition.cmd +++ b/MAS/Separate-Files-Version/Change_Office_Edition.cmd @@ -135,6 +135,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 7600 ( %eline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Change_Windows_Edition.cmd b/MAS/Separate-Files-Version/Change_Windows_Edition.cmd index b0d0231..cf6b408 100644 --- a/MAS/Separate-Files-Version/Change_Windows_Edition.cmd +++ b/MAS/Separate-Files-Version/Change_Windows_Edition.cmd @@ -140,6 +140,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 7600 ( %eline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd b/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd index a007f6b..26f6c72 100644 --- a/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd +++ b/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd @@ -134,6 +134,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto done2 ) +if not exist "%SysPath%\logoff.exe" ( +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 done2 +) +) + if %winbuild% LSS 6001 ( %nceline% echo Unsupported OS version detected [%winbuild%]. diff --git a/MAS/Separate-Files-Version/Troubleshoot.cmd b/MAS/Separate-Files-Version/Troubleshoot.cmd index ac66d6e..8372a1b 100644 --- a/MAS/Separate-Files-Version/Troubleshoot.cmd +++ b/MAS/Separate-Files-Version/Troubleshoot.cmd @@ -135,6 +135,16 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%trouble goto dk_done ) +if not exist "%SysPath%\logoff.exe" ( +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 ( %nceline% echo Unsupported OS version detected [%winbuild%].