{"id":339,"date":"2008-01-19T15:52:05","date_gmt":"2008-01-19T14:52:05","guid":{"rendered":"https:\/\/www.networknet.nl\/apps\/wp\/archives\/339"},"modified":"2008-10-26T20:14:50","modified_gmt":"2008-10-26T18:14:50","slug":"install-windows-server-2003-dhcp-server-service-with-script","status":"publish","type":"post","link":"https:\/\/www.networknet.nl\/apps\/wp\/archives\/339","title":{"rendered":"Install Windows Server 2003 DHCP Server Service with Script"},"content":{"rendered":"<p>Running the VMNet8 NAT network in VMWare Workstation does not provide me the granular control how the DHCP server should deal with different DHCP clients and options I want to see in my lab environment. As sysadmin I like to script things and re-use the code next time I will need to it.<\/p>\n<p>How to install the DHCP service from script?<\/p>\n<ul>\n<li>Create new file named c:\\dhcp_server.txt<\/li>\n<\/ul>\n<blockquote><p>[NetOptionalComponents]<\/p>\n<p>DHCPServer =1<\/p><\/blockquote>\n<ul>\n<li>Save the file and open a cmd box.<\/li>\n<li>Execute sysocmgr \/i:%windir%\\inf\\sysoc.inf \/u:c:\\dhcp_server.txt<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border: 0px initial initial;\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/InstallWindowsServer2003DHCPServicewithS_DD09\/image.png\" border=\"0\" alt=\"image\" width=\"472\" height=\"186\" \/>\u00a0<\/p>\n<p>For additional components go to <a href=\"http:\/\/technet2.microsoft.com\/windowsserver\/en\/library\/719697fa-ed1d-4fcd-8f55-4713a74109ff1033.mspx?mfr=true\" target=\"_blank\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Running the VMNet8 NAT network in VMWare Workstation does not provide me the granular control how the DHCP server should deal with different DHCP clients and options I want to see in my lab environment. As sysadmin I like to script things and re-use the code next time I will need to it. How to install the DHCP service from script? Create new file named c:\\dhcp_server.txt [NetOptionalComponents] DHCPServer =1 Save the file and open a cmd box. Execute sysocmgr \/i:%windir%\\inf\\sysoc.inf \/u:c:\\dhcp_server.txt \u00a0 For additional components go to here.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[100,103,11,101,102],"class_list":["post-339","post","type-post","status-publish","format-standard","hentry","category-scripts","tag-dhcpserver","tag-netoptionalcomponents","tag-script","tag-sysocmgr","tag-unattended"],"_links":{"self":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":2,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts\/339\/revisions\/528"}],"wp:attachment":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/categories?post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/tags?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}