This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: (Run as Admin code starts) | |
REM Check for permissions | |
>nul 2>&1 "%SYSTEMROOT%\system32\icacls.exe" "%SYSTEMROOT%\system32\config\system" | |
REM If error flag set, we do not have admin. | |
if '%errorlevel%' NEQ '0' ( | |
echo Now Running As Administrative Privileges... | |
goto UACPrompt |