Skip to content

static dns sccm 2012 boot media

Featured Replies

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.

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

  • Author

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?

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.