Initial Release Batch Version
This commit is contained in:
commit
c1383fcd0c
26 changed files with 1783 additions and 0 deletions
12
Assets/zTool/disable_script.bat
Normal file
12
Assets/zTool/disable_script.bat
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
@echo off
|
||||
:: Prüfe, ob Admin-Rechte vorhanden sind
|
||||
NET SESSION >nul 2>&1
|
||||
IF %ERRORLEVEL% NEQ 0 (
|
||||
echo Starte Skript mit Admin-Rechten ...
|
||||
powershell -Command "Start-Process cmd -ArgumentList '/c \"%~f0\"' -Verb RunAs"
|
||||
exit
|
||||
)
|
||||
|
||||
echo Sperre Script-Execution
|
||||
powershell -Command "Set-ExecutionPolicy Restricted -Scope LocalMachine"
|
||||
echo Kehre ins das Hauptmenue zurueck
|
||||
Loading…
Add table
Add a link
Reference in a new issue