Jump to content

Recommended Posts

Posted

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

Posted

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'

Posted

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

Posted

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

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...