From 76887a179f319faad7169f59383b9c26c9007faf Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 2 Jul 2024 11:12:26 +0200 Subject: [PATCH] make sure that we dont directly start as admin --- windows11.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/windows11.bat b/windows11.bat index d94ce55..d198d76 100644 --- a/windows11.bat +++ b/windows11.bat @@ -35,7 +35,7 @@ fltmc >NUL 2>&1 || ( PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue" :: Start as administrator - PowerShell Start -Verb RunAs '%0' 2>NUL || ( + PowerShell Start -Verb RunAs "%0 noskipadmin" 2>NUL || ( EXIT 1 ) EXIT 0 @@ -44,6 +44,8 @@ fltmc >NUL 2>&1 || ( :: => ADMIN RIGHTS <= +IF NOT "%1"=="noskipadmin" EXIT 0 + :: === Registery modifications == ECHO Registery entries... :: Right click of Windows 10