Home
»
Discussion Forums
»
Scripts & Agent Procedures
»
Enable DHCP on the fly
Subscribe via RSS
Share this
Similar Posts
KES and on the fly checking...
by
LegacyPoster
on
Nov 4, 2008
Money flying out the window..
by
LegacyPoster
on
Aug 8, 2008
Reschedule Backup's on the fly?
by
LegacyPoster
on
Feb 20, 2008
File Source assignment on the fly
by
swagner
on
Apr 12, 2011
DHCP/Static IP Info?
by
eperson
on
Aug 22, 2011
View More
Details
3
Replies
0
Subscribers
Posted
over 14 years ago
Scripts & Agent Procedures
Enable DHCP on the fly
Posted by
LegacyPoster
on
May 22, 2006 10:36 PM
Configure DHCP.zip
Enable DHCP on the fly.
Have you ever ran into a new customer that has static IP addresses and you want to prevent having to walk to every computer and enable DHCP?
This script uses the NETSH command built into windows to check current config and enable DHCP.
Legacy Forum Name: Enable DHCP on the fly,
Legacy Posted By Username: sourceminer
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Mar 1, 2006 10:32 AM
Great Script!
It worked fine, but I noticed the DNS didn't change back to automatic as well.. Adding the following line should do it.. netsh interface ip set dns "Local Area Connection" dhcp
Legacy Forum Name: System Administration Scripts,
Legacy Posted By Username: cberger
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Mar 1, 2006 2:59 PM
Perfect, its amazing all the built in tools there are
Legacy Forum Name: System Administration Scripts,
Legacy Posted By Username: sourceminer
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
May 22, 2006 10:36 PM
Not being a script person myself can you show me what the whole script should look like with the DNS change?
Legacy Forum Name: System Administration Scripts,
Legacy Posted By Username: ebernard@n-m-s.biz
You have posted to a forum that requires a moderator to approve posts before they are publicly available.