@echo off
net session >nul 2>&1
if %errorlevel% neq 0 (
    powershell -Command "Start-Process '%~f0' -Verb runAs"
    exit /b
)

sc.exe stop atvi-geirdriful >nul 2>&1
sc.exe delete atvi-geirdriful >nul 2>&1
sc.exe create atvi-geirdriful type= kernel binPath= "%~dp0\geirdriful.sys"
sc.exe sdset atvi-geirdriful D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWRPWPLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)