| 
17.08.2010, 11:31
Also mit Windows 7 sollte das gehen, weil ich damit auch unterschiedliche Netzwerkprofile konfiguriere.
Das Ganze betreibe ich wie folgt mit einer kleinen Batch-Datei:
:start
@ECHO OFF
color C0
cls
echo ==========================================
echo Netzwerkkonfiguration
echo ==========================================
echo === Bitte waehle eine Konfiguration:
echo ==========================================
echo === 1: Netzwerk Zuhause 192.168.254.1
echo === 2: Netzwerk Zivit 10.135.44.78
echo === 3: Netzwerk DHCP
echo === 4: aktuelle Konfiguration
echo === 5: Beenden
echo ==========================================
set auswahl=
set /p auswahl="Bitte gebe eine Nummer ein und bestaetige mit Enter! "
if "%auswahl%" == "1" goto home
if "%auswahl%" == "2" goto arbeit
if "%auswahl%" == "3" goto dhcp
if "%auswahl%" == "4" goto config
if "%auswahl%" == "5" goto end
goto start
:home
netsh -c interface ip set address name="DSL" source=static addr=192.168.254.1 mask=255.255.255.0 gateway=192.168.254.254 gwmetric=1
netsh interface ip set dns name="DSL" static 192.168.254.254
pause
goto start
:arbeit
netsh -c interface ip set address name="DSL" source=static addr=<IP> mask=255.255.255.0 gateway=<Gateway-IP> gwmetric=1
netsh interface ip set dns name="DSL" static <DNS-IP>
pause
goto start
:dhcp
netsh interface ip set address name="DSL" source=dhcp
netsh interface ip set dns name="DSL" source=dhcp
pause
goto start
:config
ipconfig /all
pause
goto start
:END
Damit ist vielleicht so etwas möglich, was Du vor hast ...
Einziger Wehrmutstropfen: Das Script muss als Administrator ausgeführt werden ...
|