@echo off
:: Yönetici olarak çalışıyor mu kontrol et
net session >nul 2>&1
if %errorlevel% neq 0 (
echo Bu islem icin YONETICI yetkileri gerekiyor. Yeniden yonetici olarak baslatiliyor...
powershell -Command "Start-Process '%~f0' -Verb runAs"
exit /b
)
setlocal
echo Sadece Ethernet baglantisini KAPATMAK icin [1], ACMak icin [2] tuslayin:
set /p choice=Seciminiz:
if "%choice%"=="1" (
echo Ethernet baglantisi devre disi birakiliyor...
netsh interface set interface name="Ethernet" admin=disable >nul 2>&1
echo Ethernet KAPATILDI.
) else if "%choice%"=="2" (
echo Ethernet baglantisi etkinlestiriliyor...
netsh interface set interface name="Ethernet" admin=enable >nul 2>&1
echo Ethernet ACILDI.
) else (
echo Gecersiz secim!
)
pause
endlocal