With the new Server Manager in Windows Server 2012, there have been some changes in the way DHCP role will be installed. The blog post describes, in the sections below, installation and configuration of DHCP Role using Server Manager and PowerShell on Windows Server 2012. Before starting, the user needs to ensure that he/she logs in as a domain user with local administrative privileges, in case the machine involved is a domain joined machine.
Figure 1: The last page of Add Role Wizard after DHCP role installation
Figure 2: DHCP Post-Install configuration wizard - Introduction Page
Figure 3: DHCP Post-Install configuration wizard - Authorization Page
Figure 4: DHCP Post-Install configuration wizard - Summary Page
Figure 5: Server Manager: DHCP Post-Install configuration wizard launch point
Figure 6: Server Manager: DHCP MMC launch point
To install the DHCP server role via PowerShell, one needs to run the following command:
Note the extra switch (IncludeManagementTools) which is now needed, in contrast to Windows 7. Without this switch, just the DHCP server role would be installed. The DHCP server RSAT tools which includes DHCP MMC, netsh context and the new DHCP PowerShell cmdlets, is not installed by default, unless you give the above flag.
If the administrator has completed the post-install configuration using PowerShell, Server Manager may still raise a flag (alert) for its completion using the post-install configuration wizard. This alert can be suppressed by notifying the Server Manager that the post-install configuration has been completed. This can be done by the below command:
This is really great, contains many stuffs in detail
How do you add additional non-standard DHCP options? There used to be an available action to setup non-standard DHCP options that I have not been able to find. What is the new method for adding new options not included in the standard list?
The UI in DHCP MMC for adding non-standard DHCP options has not changed. You can go to IPv4 node, right clikc, Set predefined options and then press Add to add a new option definition. Once the option definition is added, you can set values for that option at each scope or server wide. You can also use the Add-DhcpServerv4OptionDefinition cmdlet to add a new option definition and Set-DhcpServerv4OptionValue to set option value for any option.
Thank you! I feel stupid -i see it now, but not before I found the technet info on using PowerShell to add them. Great updates to DHCP server in 2012 - I'm loving the Policy maps!
Thanks WillB! It will be great if you could share how you are using the DHCP policies...It will help us understand the scenarios and plan for any future updates.
So, I have a private subnet that I want to provide DHCP services to and decided to use 2012 as the provider but I'm having tons of problems. This is a standalone server (ie, not part of a domain) and when I try to select alternate credentials and put in the admin info or say skip AD, I get an error about not being able to open registry keys to set the status of the post config task. It recommends setting trustedHosts via winrm which I have done even though this should not be needed as it's just a single machine but it still fails.
Any thoughts would be great.
We have seen this issue when you are try to perform post install configuration through server manager while logged in as a local administrator on a domain joined computer. You should be able to work around this by logging in as a domain user who is has admin privileges on the computer (member of the local administrators group). Hope it helps.
Also you have mentioned the server is not part of domain - however the rest of your description ("try to select alternate credentials and put in the admin info or say skip AD") as well as the error that you hit suggest that the server is domain joined. You will not be prompted for authorization of the server in AD unless the server is domain joined.
This is really great article and I am sure it is helping many people. I wanted to add my 2 cents by sharing a small video on steps to install and configure Windows Server 2012 <a href="www.youtube.com/watch.
More videos are available at <a href="www.prohut.net/.../a>
Hi I have almost the same issue as Victor. The only difference is I am signed on as a domain administrator on the machine, which happens to be a domain controller. I actually have removed the role and tried adding it back in, but the same issue occurs every time. "Failed to open registry key on target computer...."
Hi Minoo, We have not seen this issue when the user performing the install is logged in as domain admin as the domain admin has the required permissions. However, as mentioned in earlier responses, the error is benign since the installation has completed successfully in this case.
Below is what you can do, to get rid of the prompt in server manager to complete the post-install configuration step (this has also been added to the blog above) -
•Command: Set-ItemProperty –Path registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager\Roles\12 –Name ConfigurationState –Value 2
Can the clustered DHCP servers be accessed via NLB? We have an issue with some old networking equipment that will only allow us to configure 1 address for the IP helper.
I am assuming that by clustered DHCP servers you mean DHCP servers participating in failover.
Using DHCP failover with NLB is not recommended as NLB can send request packet to only one server. It selects the server to send the packet to, after applying a logic (which is a configurable setting). It does not send the packets to multiple servers. DHCP failover requires that a request packet be received by both the failover partners.
We recommend that you instead use a DHCP relay agent (in Routing and Remote Access Service role in windows server). A DHCP relay agent can relay a DHCP request to multiple servers.
So essentially, you will configure the IP address of the DHCP relay agent (in Routing and Remote Access Service role in windows server) in your old network equipment and configure the RRAS DHCP relay agent with IP addresses of the 2 DHCP failover servers. This would amount to cascading of DHCP relay agents.
Can I authorize a 2012 DHCP server in a 2008 R2 AD?
We're having some problems doing so. I must admit we're just in the preliminary stages, but I thought I'd ask here...
Hi Brian, yes you can authorize 2012 DHCP server in a 2008R2 or even a lower version AD. There is no dependency in DHCP server on a specific AD version. What is the problem you are facing.