gustavmega 10 Posted August 13, 2006 Report Posted August 13, 2006 Hallo, ich habe eine .bat-Datei, daß drine folgendes steht: @for /F "tokens=10,*" %%i in ('ipconfig /all^|find "Physik"') do @set MAC=%%i if %MAC% == 00-11-2F-4B-39-37 goto Netz1 if %MAC% == 00-13-D8-2E-G4-C0 goto Netz2 if %MAC% == 00-11-D9-85-1A-51 goto Netz3 if %MAC% == 00-11-D8-89-24-89 goto Netz4 :Netz1 netsh interface ip set address name="LAN-Verbindung 2" source=static addr=130.133.99.101 mask=255.255.255.0 gateway="130.133.88.1" gwmetric=1 exit :Netz2 netsh interface ip set address name="LAN-Verbindung 2" source=static addr=130.133.99.102 mask=255.255.255.0 gateway="130.133.88.1" gwmetric=1 exit :Netz3 netsh interface ip set address name="LAN-Verbindung 2" source=static addr=130.133.99.103 mask=255.255.255.0 gateway="130.133.88.1" gwmetric=1 exit :Netz4 netsh interface ip set address name="LAN-Verbindung 2" source=static addr=130.133.99.104 mask=255.255.255.0 gateway="130.133.88.1" gwmetric=1 exit und so werden die IP-Adressen geändert. Jetzt wollte ich fragen, ob auch noch möglich wäre, daß man den Rechnername vom jeweiligen Rechner ändert? Gruß, G.M. Quote
maxi66 10 Posted August 13, 2006 Report Posted August 13, 2006 tach, schau dir mal dieses tool hier an, ist ein sehr schönes programm um den computernamen oder die workgroup zu ändern, oder alternativ netdom oder newsid. Workstation Name Changer Workstation Name Changer Command Line bis dann, Quote
gustavmega 10 Posted August 14, 2006 Author Report Posted August 14, 2006 DANKE, werde es mir dann anschauen :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.