Perhaps have a try with the following vb script: It only asks for the data and then runs the command "netsh interface ip set address source=static name="Local Area Connection" addr=xxx.xxx.xxx.xxx mask=xxx.xxx.xxx.xxx gateway=xxx.xxx.xxx.xxx 1" Set wshshell = CreateObject("WScript.Shell") ip = "134.76.210.86" subnet ="255.255.0.0" gateway ="134.76.210.254" 'msg = "Want you to set a static IP? "& VbCr &"(If no DHCP is enabled)?" antwort = MsgBox(msg, vbYesNo + vbQuestion) if antwort = vbNo then befehl ="netsh interface ip set address source=dhcp name= "&"""Local Area Connection""" command = "%COMSPEC% /C " & befehl resultat = wshshell.Run ( kommando, 1, True ) befehl ="netsh interface ip delete dns name="&"""Local Area Connection""" & " addr=all" command = "%COMSPEC% /C " & befehl resultat = wshshell.Run ( kommando, 1, True ) befehl ="netsh interface ip delete wins name="&"""Local Area Connection""" & " addr=all" command = "%COMSPEC% /C " & befehl resultat = wshshell.Run ( kommando, 1, True ) WScript.Quit end if ip_neu = InputBox("Please enter the IP:","Enter IP number", ip ) subnet_neu = InputBox("Please enter subnetmask:","Enter subnetmask", subnet ) gateway_neu = InputBox("Please enter gateway:","Enter gateway", gateway ) befehl ="netsh interface ip set address source=static name= "&"""Local Area Connection"""&" addr="& ip_neu &" mask="& subnet_neu &" gateway="& gateway_neu & " 1" command = "%COMSPEC% /C " & befehl resultat = wshshell.Run ( kommando, 1, True ) If Not resultat = 0 Then MsgBox ("Changing of IP failed") End If