地址池设置   租期:天.小时:分钟:秒
Add-DhcpServerv4Scope -name " 地址池名称 " -StartRange 地址池起始地址  -EndRange 地址池结束地址  -SubnetMask 子网掩码  -State Active  -LeaseDuration 4.00:00:00
Add-DhcpServerv4Scope -name " vlan10 " -StartRange  172.20.10.21  -EndRange  172.20.10.254  -SubnetMask  255.255.255.0  -State Active  -LeaseDuration 4.00:00:00
Add-DhcpServerv4Scope -name "vlan10" -StartRange 172.20.10.21 -EndRange 172.20.10.254 -SubnetMask 255.255.255.0 -State Active -LeaseDuration 4.00:00:00

网关设置
Set-DhcpServerv4OptionValue -OptionID 3 -Value 网关IP  -ScopeID  网络号
Set-DhcpServerv4OptionValue -OptionID 3 -Value 172.20.10.1  -ScopeID  172.20.10.0
Set-DhcpServerv4OptionValue -OptionID 3 -Value 172.20.10.1 -ScopeID 172.20.10.0					
DNS设置
Set-DhcpServerv4OptionValue -DnsDomain  域名  -DnsServer  DNS服务器1,DNS服务器2  -ScopeId  网络号
Set-DhcpServerv4OptionValue -DnsDomain  free.com  -DnsServer  172.20.200.21,172.20.200.22  -ScopeId  172.20.10.0

Set-DhcpServerv4OptionValue -DnsDomain free.com -DnsServer 172.20.200.21,172.20.200.22 -ScopeId 172.20.10.0