tri_94 Posted August 24, 2012 Posted August 24, 2012 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
Mcshammer_dj Posted August 24, 2012 Posted August 24, 2012 why would you need a script to apply a static IP address??
Steve21 Posted August 24, 2012 Posted August 24, 2012 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
tri_94 Posted August 24, 2012 Author Posted August 24, 2012 i have a batch of over 50 to staticly assign for licenseing for some software
Steve21 Posted August 24, 2012 Posted August 24, 2012 i have a batch of over 50 to staticly assign for licenseing for some software Name and shame the software! Steve
Mcshammer_dj Posted August 24, 2012 Posted August 24, 2012 can't you use dhcp and mac address filter them?
tri_94 Posted August 24, 2012 Author Posted August 24, 2012 would i not have to set res for each that way?
ihaveaproblem Posted August 24, 2012 Posted August 24, 2012 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 )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now