13 lines
262 B
Batchfile
13 lines
262 B
Batchfile
@echo off
|
|
set TOOLS=c:\tools
|
|
|
|
net session >nul 2>&1
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo ERROR: User has NO ADMINISTRATOR rights!
|
|
exit /b
|
|
)
|
|
|
|
echo disabling unwanted NETWORK features ...
|
|
powershell -command %TOOLS%\scripts\disable-networkfeatures.ps1
|
|
|