@echo off
set TOOLS=c:\tools

net session >nul 2>&1
if NOT %ERRORLEVEL% == 0 ( 
  echo ERROR: User has NO ADMINISTRATOR rights!
  exit /b  
)

echo disabling unwanted NETWORK features ...
powershell -command %TOOLS%\scripts\disable-networkfeatures.ps1