@echo off REM ################################################################# REM # LockScreenSwitcher.cmd REM # Version 0.1 by Mark REM ################################################################# :begin call :vars call :language_definition :menue cls if "%~1"=="" ( echo. echo. %_title% echo. ======================================================================= echo. %_admininfo% echo. echo. echo. 1 = %_deactivate% echo. echo. 2 = %_activate% echo. echo. 3 = %_delete% [%_default%] echo. echo. 4 = %_show% echo. set /p _answer=%_question% echo. ) else _answer=%~1 :check_answer if /i "%_answer%" == "1" ( echo.%_deactivate% REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization /v NoLockScreen /t REG_DWORD /d 1 /f pause ) else if /i "%_answer%"=="2" ( echo.%_activate% REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization /v NoLockScreen /t REG_DWORD /d 0 /f pause ) else if /i "%_answer%"=="3" ( echo.%_delete% REG DELETE HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization /f pause ) else if /i "%_answer%"=="4" ( echo.%_show% reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization /f NoLockScreen /t REG_DWORD /c /e pause ) else ( echo.%_nochange% ) goto :menue ::functions :vars set _title=LockScreenSwitcher set _deactivate=deactivate LockScreen set _activate=LockScreen active set _delete=delete LockScreen entry set _show=show LockScreen state set _nochange=no change done set _question="your choice: " set _default=default set _admininfo=changing state needs administrative rights exit /b :language_definition set _title=LockScreenSwitcher set _deactivate=LockScreen ausschalten set _activate=LockScreen aktivieren set _delete=LockScreen-Eintrag entfernen set _show=Status anzeigen set _nochange=keine Aenderung durchgefhrt set _question="Deine Wahl: " set _default=standard set _admininfo=Statusaenderung benoetigt administrative Rechte exit /b :end ping 127.0.0.1 >NUL echo.