w10install/scripts/disable-networkfeatures.cmd

13 lines
262 B
Batchfile
Raw Normal View History

@echo off
set TOOLS=c:\tools
net session >nul 2>&1
2022-12-26 21:40:25 +01:00
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