@REM muda para o diretorio onde o script esta.
@cd /d "%~sdp0" 

@if /i "%1" NEQ "e" (
	@WHOAMI /Groups | FIND "12288" >NUL
)

@IF ERRORLEVEL 1 (
	@ECHO solicitando admin...

	@echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
	@echo UAC.ShellExecute "%~snx0", "e", "%~sdp0", "runas", 1 >> "%temp%\getadmin.vbs"
	
	"%temp%\getadmin.vbs"
	@EXIT /B
)

@if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )

@REM sc create ZURI binpath= WebFoundations.ZuriService.exe
"%windir%\Microsoft.NET\Framework\v4.0.30319\InstallUtil" WebFoundations.ZuriService.exe
@pause