@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 cleaning START menu tiles ... powershell -command %TOOLS%\scripts\cleanup-tiles.ps1