Install-WindowsFeature -Name DHCP -IncludeManagementTools

Add-DhcpServerSecurityGroup -ComputerName CORE1.ecole.com
Add-DhcpServerInDC -DnsName CORE1.ecole.com -IPAddress 192.168.1.100

Restart-Service Dhcpserver

Add-DhcpServerv4Scope `
-Name "etendue core1" `
-StartRange 192.168.1.10 `
-EndRange 192.168.1.60 `
-LeaseDuration 15.00:00:00 `
-SubnetMask 255.255.255.0 `
-State Active

Set-DhcpServerv4OptionValue -OptionId 3 -Value 192.168.1.254 -ScopeId 192.168.1.0
Set-DhcpServerv4OptionValue -OptionId 6 -Value 192.168.1.200 -ScopeId 192.168.1.0
Set-DhcpServerv4OptionValue -OptionId 15 -Value ecole.com -ScopeId 192.168.1.0

Export-DhcpServer -File c:\dhcp.xml
Import-DhcpServer -File c:\dhcp.xml