diff --git a/service_install.bat b/service_install.bat index 29cc13c..fc34db4 100644 --- a/service_install.bat +++ b/service_install.bat @@ -8,7 +8,7 @@ if "%1"=="admin" ( echo Started with admin rights ) else ( echo Requesting admin rights... - powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"\"%~f0\" admin\"' -Verb RunAs" + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs" exit /b ) diff --git a/service_remove.bat b/service_remove.bat index 654c43f..6763b80 100644 --- a/service_remove.bat +++ b/service_remove.bat @@ -6,7 +6,7 @@ if "%1"=="admin" ( echo Started with admin rights ) else ( echo Requesting admin rights... - powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"\"%~f0\" admin\"' -Verb RunAs" + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs" exit /b )