djgreek Posted March 7, 2011 Posted March 7, 2011 HI ALL, I RECENTLY STARTED WORK AT A SCHOOL I AM STILL TRYING TO LEARN THE ROPES. THE PREVIOUS NETWORK ADMIN USED STATIC IP ADDRESS FOR EVERYTHING. i HAVE RECENTLY INSTALLED A DHCP AND IT IS WORKING I ALSO CONFIGURED A SECONDARY DNS WORKING AS WELL. ALL NEW CONECTIONS WORK. I NEED TO CHANGE THE OTHER 500 COMPUTERS. CAN SOMEONE HELP ME CHANGE THE SECONDARY DNS ON ALL MACHINES OR SOMEONE HELP ME WITH A SCRIPT THAT WILL CHANGE SETTING TO USE DHCP
cromertech Posted March 7, 2011 Posted March 7, 2011 If your clients can run a startup script from group policy then netsh interface ip set address "Local Area Connection" dhcp will do the job as long as they're not wireless. I think if they are wireless you need to change 'local area connection' to 'Wireless Network Connection'
sister_annex Posted March 7, 2011 Posted March 7, 2011 From the spiceworks website: Simple Script to Enable DHCP on Network adapters - Script Center - Spiceworks Community The script is a VBS Script ' Enable DHCP strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colNetAdapters = objWMIService.ExecQuery _ ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") For Each objNetAdapter In colNetAdapters errEnable = objNetAdapter.EnableDHCP() Next
somabc Posted March 7, 2011 Posted March 7, 2011 (edited) Welcome to edugeek, there are several approaches using netsh or vbscript, Cromertech's solution is probably the easiest for you to implement. VBScript: Reset DNS to DHCP Assigned PS please do not write all in CAPS it is very hard to read! Edited March 7, 2011 by somabc
powdarrmonkey Posted March 7, 2011 Posted March 7, 2011 HI ALL, I RECENTLY STARTED WORK AT A SCHOOL I AM STILL TRYING TO LEARN THE ROPES. ... lesson #1: your caps key is between Shift and Tab.
sister_annex Posted March 7, 2011 Posted March 7, 2011 lesson #1: your caps key is between Shift and Tab. Sorry, I know i shouldn't but... LOL!!!
djgreek Posted March 8, 2011 Author Posted March 8, 2011 ok so i used the netsh interface ip set address "Local Area Connection" dhcp But there are so many different connection names can i somehow join them
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