static ip to dhcp
I have many pc's that need to be changed to DHCP. I have found some scripts that work but seem to only work on my pc. I am trying to push this out through GPO. Does anyone hsave a script that will change the addres and DNS to use DHCP?
Thanksnorman mattox
May 15th, 2012 3:31pm
netsh interface ip set address "Local Area Connection" dhcp
Paste the above cmd in a batch file, save it in a share, configure and apply a logon script to selected computers.
More resources:
http://support.microsoft.com/kb/257748
http://www.wikihow.com/Write-a-Batch-File
http://technet.microsoft.com/en-us/library/cc779329(v=ws.10).aspx
http://support.microsoft.com/kb/198642 MCTS - Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
http://mariusene.wordpress.com/
Free Windows Admin Tool Kit Click here and download it now
May 15th, 2012 4:06pm
Hello,
I don't think that a startup script would be a better idea.
However, you can see this similar thread: http://forums.techguy.org/networking/568201-possible-deploy-dhcp-via-group.html
and see also the suggested script.
More if you ask them here: http://social.technet.microsoft.com/Forums/en-US/category/scripting
This
posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
Microsoft
Student Partner 2010 / 2011
Microsoft
Certified Professional
Microsoft
Certified Systems Administrator: Security
Microsoft
Certified Systems Engineer: Security
Microsoft
Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
Microsoft
Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
Microsoft
Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuration
Microsoft
Certified Technology Specialist: Windows 7, Configuring
Microsoft
Certified Technology Specialist: Designing and Providing Volume Licensing Solutions to Large Organizations
Microsoft
Certified IT Professional: Enterprise Administrator
Microsoft Certified IT Professional: Server Administrator
Microsoft Certified Trainer
May 15th, 2012 4:11pm
Hi Norman,
Thanks for posting here.
Some sample scripts could be acquired form the site below and I also agree about pushing to client through startup script by group policy
Configure a Network Connection to Use DHCP
http://gallery.technet.microsoft.com/scriptcenter/5af36ed9-675b-425f-9bb3-81b088408461
Or maybe we can just modifying the registry keys in order to achieve the goal and of course these changes could also be pushed to clients via group policy :
How to Remotely Reconfigure IP from Static Addressing to DHCP
http://support.microsoft.com/kb/q194407/
Regards,
Tiger Li
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact
tnmff@microsoft.com.Tiger Li
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 15th, 2012 10:50pm
Hi Norman,
Thanks for posting here.
Some sample scripts could be acquired form the site below and I also agree about pushing to client through startup script by group policy
Configure a Network Connection to Use DHCP
http://gallery.technet.microsoft.com/scriptcenter/5af36ed9-675b-425f-9bb3-81b088408461
Or maybe we can just modifying the registry keys in order to achieve the goal and of course these changes could also be pushed to clients via group policy :
How to Remotely Reconfigure IP from Static Addressing to DHCP
http://support.microsoft.com/kb/q194407/
Regards,
Tiger Li
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact
tnmff@microsoft.com.Tiger Li
TechNet Community Support
May 15th, 2012 10:50pm
Hi Norman,
Please feel free to let us know if the information was helpful to you.
Regards,
Tiger Li
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact
tnmff@microsoft.com.Tiger Li
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 17th, 2012 10:21pm
Hi Norman,
Please feel free to let us know if the information was helpful to you.
Regards,
Tiger Li
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact
tnmff@microsoft.com.Tiger Li
TechNet Community Support
May 17th, 2012 10:24pm
Thanks Guys,
I haven't had time to try it yet but I believe one of these will work. I am sure the reg setting will do the trick.
norman mattox
Free Windows Admin Tool Kit Click here and download it now
May 22nd, 2012 2:57pm