hmc25 Posted June 4, 2012 Report post Posted June 4, 2012 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. Quote Share this post Link to post Share on other sites More sharing options...
Peter33 Posted June 4, 2012 Report post Posted June 4, 2012 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 Quote Share this post Link to post Share on other sites More sharing options...
hmc25 Posted June 4, 2012 Report post Posted June 4, 2012 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? Quote Share this post Link to post Share on other sites More sharing options...