How to use the windows command to determine whether the batch is running with the highest level of administrator privileges
@ echo off
At > nul
If errorlevel% equ 0 (echo ok) else echo Please switch to an administrator account to run this batchboxes!
@ echo off
Whoami / groups | find "Smuri 1-16-12288" > nul
If ERRORLEVEL 1 (echo [ERROR] This script has to be executed with administrator privilegs) else echo [OK]