modules/deploy/dsc/ext/PsGallery/xDhcpServer.1.3.0.0/Samples/SampleConfiguration.ps1
configuration Sample_xDhcpsServerScope_NewScope { Import-DscResource -module xDHCpServer WindowsFeature DHCP { Name = 'DHCP' Ensure = 'Present' } xDhcpServerScope Scope { Ensure = 'Present' IPStartRange = '192.168.1.1' IPEndRange = '192.168.1.254' Name = 'ContosoScope' SubnetMask = '255.255.255.0' LeaseDuration = '00:08:00' State = 'Active' AddressFamily = 'IPv4' DependsOn = @('[WindowsFeature]DHCP') } xDhcpServerReservation PullServerIP { Ensure = 'Present' ScopeID = '192.168.1.0' ClientMACAddress = '00155D8A54A1' IPAddress = '192.168.1.2' Name = 'DSCPullServer' AddressFamily = 'IPv4' DependsOn = @('[WindowsFeature]DHCP') } xDhcpServerOption Option { Ensure = 'Present' ScopeID = '192.168.1.0' DnsDomain = 'contoso.com' DnsServerIPAddress = '192.168.1.22','192.168.1.1' AddressFamily = 'IPv4' Router = '192.168.1.1' DependsOn = @('[WindowsFeature]DHCP') } } |