Jump to content

Recommended Posts

Posted

hi there can anyone help me with a script to assign an static ip address.

 

ideally a way i could set the subnet mask and default gateway and define the first three fields for the ip. eg 192.168.0 so prompt for the last field.

 

thanks

nick

Posted

netsh int ip set address name="Local Area Connection" source=static addr=1.1.1.1 mask=2.2.2.2 gateway=3.3.3.3

 

If you want IP prompted, just add an input box and use that var instead of setting it above.

 

Steve

Posted
would i not have to set res for each that way?

 

Yeh but probably better to do it this way then a script. Shouldn't take to long , 5 - 10 mins.

Open up DHCP and the correct scope. Then you can right click the correct entry's and select set as reservation ( says something like that )

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...