Skip to content

Instantly share code, notes, and snippets.

@echo off
net session >nul 2>&1
if %errorlevel% NEQ 0 (
echo This batch file requires admin privileges.
goto end
)
echo Setting registry values.