netsh/DHCP Context


Configures DHCP servers.





Lists available DHCP commands (more verbose than help).


Dumps the configuration of the DHCP server as a series of NetShell commands.

add server [servername | serveraddress]

Adds a DHCP server to the list of authorized DHCP servers stored in Active Directory. You can specify either the DNS name or IP address of the server.

delete server [servername | serveraddress]

Removes a DHCP server from the list of authorized DHCP servers.

show server

Lists all authorized DHCP servers in the current domain.

server [\\servername | serveraddress]

Enters the subcontext for the specified DHCP server, which enables you to configure the DHCP server using the add, delete, initiate, scope, mscope, set, and show commands. These commands and their options are summarized in Table 5-8.

Note that the scope and mscope commands enter new subcontexts. The Scope context configures a specific scope on the server, and Mscope configures multicast scopes. The commands available in these subcontexts are shown in Table 5-9 and Table 5-10.

You can tell what context you are currently in by the command prompt during a NetShell session. For example:

dhcp>server \\mydhcp
dhcp server>


In the previous example, you move from the Windows command shell to the NetShell global context (netsh>), then to the DHCP context (dhcp>), and finally to the DHCP server context (dhcp server>), which is a subcontext for a particular ...

Get Windows Server 2003 in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.