Recipe 14.1. Installing DHCP ServerProblemYou want to install the DHCP Server service. SolutionUsing a graphical user interface
Using a command-line interfaceFirst, create a file using a text editor such as Notepad with the following contents: [netoptionalcomponents] dhcpserver=1 Next, use the sysocmgr.exe utility with the following parameters (assuming the file you just created is named c:\dhcp_install.txt): > sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\dhcp_install.txt Using VBScriptUnfortunately, there aren't any scripting APIs for installing the DHCP Server. One option would be to run the sysocmgr command from within a script. DiscussionThe DHCP Server service is an optional Windows Component, so you can install it using the Add or Remove Programs applet in the Control Panel. There are no configuration options when you install the DHCP Server, so installation is a breeze. After you've installed the service, you'll need to authorize the server, if you have an Active Directory environment, as described in Recipe 14.2. If the server you installed DHCP on is multihomed (i.e., has multiple active network adapters), you'll want to make sure the correct network adapters are enabled for use by the DHCP Server. You can enable or disable adapters for use by DHCP Server by doing the following:
See AlsoRecipe 2.4 and Recipe 14.2 |