Install DHCP server with the Powershell

DHCP server setup with the powershell.

# Connect remotely if remote installation is required Enter-PSSession -ComputerName DC01 # View feature by name Get-WindowsFeature -Name * DHCP * -ComputerName DC01 # Install DHCP Server Install-WindowsFeature -ComputerName DC01 `-name DHCP` -IncludeAllSubFeature ` -IncludeManagementTools # Complete DHCP configuration. Obtain authorization against the AD. Add-DhcpServerInDC -DnsName DC01 -IPAddress 172.18.32.30 # Get DHCP Server Get-DhcpServerInDC # DHCP Create 1 Domain Add-DhcpServerv4Scope -ComputerName DC01 `-name" Human Resources "` -Description "Eat" `-StartRange 172.18.32.100` -EndRange 171.18.32.120 `SubnetMask 255.255.255.0 `-LeaseDuration 08: 00: 00` -State Active `-Type DHCP` -PassThru # Create DHCP Scope 2 Add-DhcpServerv4Scope -ComputerName DC01 `-Name" Marketing "` -Description "Eat" `-StartRange 172.18.31.130` -EndRange 171.18.31.150 `-SubNetMask 255.255.255.0` -LeaseDuration 08: 00: 00 `-State Active` -Type DHCP `-PassThru # Range Control DHCP Get-DhcpServerv4Scope -ComputerName DC01 # Create SuperScope - Merge 1 Area and 2 Add-DhcpServerv4Superscope` -SuperscopeName 'TK Attachment `` -ComputerName DC01 `ScopeId 172.18.31.0,172.18.32.0 # Multicast Scope Add-DhcpServerv4MulticastScope` -ComputerName DC01` -Name 'Audio Video' `-Description 'Audio Video Transfer'` -St artRange 225.0.0.1 `-EndRange 225.0.0.254` State InActive `-LeaseDuration 15: 0: 0: 0 # Range Control Mutlicast Get-DhcpServerv4MulticastScope -ComputerName DC01