summaryrefslogtreecommitdiff
path: root/MAS/Separate-Files-Version/Troubleshoot.cmd
diff options
context:
space:
mode:
authorWindowsAddict2025-08-02 20:15:30 +0000
committerWindowsAddict2025-08-02 20:15:30 +0000
commite476ac66a45db32b289179d7c016f2cd4ed4601a (patch)
treedc931d0d9cf924ba8f3ad13fa7912cb5a262aef9 /MAS/Separate-Files-Version/Troubleshoot.cmd
parentdba7213a91d6ee8d206fe515a5e0a971a1e96de7 (diff)
downloadMicrosoft-Activation-Scripts-e476ac66a45db32b289179d7c016f2cd4ed4601a.zip
Detect Windows Sandbox
Diffstat (limited to 'MAS/Separate-Files-Version/Troubleshoot.cmd')
-rw-r--r--MAS/Separate-Files-Version/Troubleshoot.cmd10
1 files changed, 10 insertions, 0 deletions
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%].