With the novel Server Manager inwards Windows Server 2012, at that topographic point pick out been roughly changes inwards the agency DHCP role volition survive installed. The spider web log ship service describes, inwards the sections below, installation together with configuration of DHCP Role using Server Manager together with PowerShell on Windows Server 2012. Before starting, the user needs to ensure that he/she logs inwards every minute a domain user amongst local administrative privileges, inwards representative the automobile involved is a domain joined machine.
Installing DHCP role via novel Server Manager
- Ensure the reckoner has at to the lowest degree 1 static IP address assigned earlier starting the role installation.
- Launch the Add Role Wizard from Server Manager.
- Select DHCP server role together with boot the bucket through the steps needed for installation.
- The concluding page of the sorcerer (which comes upward subsequently the role has been installed), provides a link - "Complete DHCP configuration". This provides roughly tasks that demand to survive performed to enable the DHCP server role to run properly subsequently role installation.
Wizard subsequently DHCP role installation
- Launch the DHCP post-install sorcerer together with consummate the steps required.
- Creation of DHCP safety groups (DHCP Administrators together with DHCP Users). For these safety groups to survive effective, the DHCP server service needs to survive restarted. This volition demand to survive performed separately past times the administrator.
Authorization of DHCP server inwards Active Directory (only inwards representative of a domain-joint setup). In a domain joined environment, exclusively subsequently the DHCP server is authorized, it volition starting fourth dimension serving the DHCP customer requests. Authorization of DHCP server tin exclusively survive performed by a domain user that has permissions to practice objects inwards the Net services container inwards Active Directory.
Authorization Page
Summary Page
- In representative completing of the post-install footstep is missed subsequently role installation, the administrator volition boot the bucket along to meet a notification on the activity pane together with also a link on the DHCP role tile on the primary Server Manager page suggesting that roughly configuration is required. That link would boot the bucket away exclusively subsequently completion of the post-install task.
DHCP Post-Install configuration sorcerer launch point
- The configuration of DHCP server parameters such every minute scope, options etc. are no longer available inwards the novel Server Manager. The administrator tin straightaway launch DHCP MMC either via Server director (as shown below), or via the DHCP MMC application inwards the Start Menu, or writing dhcpmgmt.msc on the ascendancy prompt. The administrator tin straightaway practice scopes, laid upward pick values then every minute to survive able to lease out IP addresses together with supply pick values to clients.
Server Manager: DHCP MMC launch point
Installing via PowerShell
To install the DHCP server role via PowerShell, 1 needs to run the next command:- Command: Add-WindowsFeature -IncludeManagementTools dhcp
- After the role is installed, at that topographic point are a few other steps that the administrator needs to perform then that the server tin run correctly together with lease out addresses. This the post-install configuration every minute performed past times the higher upward mentioned post-install wizard. The administrator tin either launch the Server Manager together with consummate the DHCP post-installation describe from at that topographic point (as this is UI-only task) or run the below laid upward of commands which are an equivalent of above.
- Creating DHCP safety groups
- Command:netsh dhcp add together securitygroups
- You volition demand to restart the DHCP service for these groups to larn active.
- Command: Restart-service dhcpserver
- Authorizing the DHCP server inwards Active Directory (only needed for a domain-joined setup)
- Command: Add-DhcpServerInDC <hostname of the DHCP server> <IP address of the DHCP server>
- Now the administrator tin launch DHCP MMC either via Server manager, or via the DHCP MMC application from the starting fourth dimension menu, or past times writing dhcpmgmt.msc on the ascendancy prompt. The administrator tin straightaway also practice scopes, laid upward pick values then every minute to survive able to lease out IP addresses together with supply pick values to clients using DHCP MMC or the novel DHCP PowerShell.
- Command: Set-ItemProperty –Path registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager\Roles\12 –Name ConfigurationState –Value 2