Jump to content


hmc25

static dns sccm 2012 boot media

Recommended Posts

Hi, I need to be able to assign a dns address statically to sccm2012 boot media that I've created. clients are initiated from a network that has a different dns server and there is no forwarder to my dns server. Is there anyway a static dns entry can be hardcoded into the sccm 2012 boot media? Help is appreciated.

Share this post


Link to post
Share on other sites

Running a command line with the following command should do the trick. You need to do this after every reboot in the Task Sequnce. Also make sure the interface name "Local Area Network" is correct on your machines. It differs depending on the OS language.

 

netsh interface ip set dns "Local Area Network" static 192.168.0.1

 

This command will set it back to DHCP

 

netsh interface ip set dns "Local Area Network" dhcp

Share this post


Link to post
Share on other sites

thanks but I only need a static dns entry (maybe also the suffix). I would like to keep the dhcp assigned ip address. Is there any file I can hardcode the dns entry in? I've tried setting the variables when creating the sccm 2012 media but did not work. I've also tried running your command "netsh interface ip set dns "Local Area Network" static 192.168.0.1" in the "Enable prestart command" when creating the boot media but did also not work. It would be a pain typing this line everytime you boot from the sccm boot image. Remarkably though configuring the variables when creating the task sequence boot media worked in sccm 2007 for some reason but not sccm2012. Any other ideas? Does the sccm 2012 boot image work the same way winpe 3.0 does?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.