diff --git a/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/Start Menu/Disable Start Menu and Search.cmd b/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/Start Menu/Disable Start Menu and Search.cmd index 1d4724c876..9a384f42db 100644 --- a/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/Start Menu/Disable Start Menu and Search.cmd +++ b/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/Start Menu/Disable Start Menu and Search.cmd @@ -15,7 +15,7 @@ pause set /P c="This will disable SearchApp and StartMenuExperienceHost, are you sure you want to continue [Y/N]? " if /I "!c!" == "Y" goto continSS if /I "!c!" == "N" exit /b -if /I "!c!" == "" echo No option selected - launch the script again. & pause & exit +if /I "!c!" == "" echo No option selected - launch the script again. & pause & exit /b 1 :continSS :: Rename start menu chdir /d !windir!\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy diff --git a/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/Start Menu/Install Open-Shell.cmd b/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/Start Menu/Install Open-Shell.cmd index 9ac5702459..543a7caa55 100644 --- a/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/Start Menu/Install Open-Shell.cmd +++ b/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/Start Menu/Install Open-Shell.cmd @@ -10,7 +10,7 @@ ping -n 1 -4 www.example.com | find "time=" > nul 2>&1 if !errorlevel! == 1 ( echo You must have an internet connection to use this script. pause - exit /b + exit /b 1 ) if exist "!windir!\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\SearchApp.exe" goto existOS diff --git a/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/User Account Control (UAC)/Enable UAC (default).cmd b/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/User Account Control (UAC)/Enable UAC (default).cmd index 242e1fc97a..69902fb435 100644 --- a/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/User Account Control (UAC)/Enable UAC (default).cmd +++ b/src/playbook/Executables/Atlas/3. Configuration/1. General Configuration/User Account Control (UAC)/Enable UAC (default).cmd @@ -46,4 +46,4 @@ echo] echo Press any key to enable UAC... [?25l pause > nul call "%~f0" -exit \ No newline at end of file +exit /b 1 \ No newline at end of file diff --git a/src/playbook/Executables/Atlas/3. Configuration/2. Advanced Configuration/Utilities/Process Explorer/Install Process Explorer.cmd b/src/playbook/Executables/Atlas/3. Configuration/2. Advanced Configuration/Utilities/Process Explorer/Install Process Explorer.cmd index 2dccf76808..9491e4f351 100644 --- a/src/playbook/Executables/Atlas/3. Configuration/2. Advanced Configuration/Utilities/Process Explorer/Install Process Explorer.cmd +++ b/src/playbook/Executables/Atlas/3. Configuration/2. Advanced Configuration/Utilities/Process Explorer/Install Process Explorer.cmd @@ -10,7 +10,7 @@ ping -n 1 -4 www.example.com | find "time=" > nul 2>&1 if !errorlevel! == 1 ( echo You must have an internet connection to use this script. pause - exit /b + exit /b 1 ) :: Download and install Process Explorer diff --git a/src/playbook/Executables/Atlas/3. Configuration/5. Security/Defender/Toggle Defender.cmd b/src/playbook/Executables/Atlas/3. Configuration/5. Security/Defender/Toggle Defender.cmd index 6ea6bdb24e..ec0acb3b57 100644 --- a/src/playbook/Executables/Atlas/3. Configuration/5. Security/Defender/Toggle Defender.cmd +++ b/src/playbook/Executables/Atlas/3. Configuration/5. Security/Defender/Toggle Defender.cmd @@ -15,7 +15,7 @@ if "%*"=="" ( echo You must run this script as admin. pause & exit /b 1 ) - exit /b 0 + exit /b ) ) diff --git a/src/playbook/Executables/AtlasModules/Scripts/online-sxs.cmd b/src/playbook/Executables/AtlasModules/Scripts/online-sxs.cmd index baf2a25235..9c3713f231 100644 --- a/src/playbook/Executables/AtlasModules/Scripts/online-sxs.cmd +++ b/src/playbook/Executables/AtlasModules/Scripts/online-sxs.cmd @@ -18,7 +18,7 @@ if "%*"=="" ( echo You must run this script as admin. pause & exit /b 1 ) - exit /b 0 + exit /b ) )