This module contains DSC resources for deployment and configuration of Microsoft DHCP Server.

Minimum PowerShell version


This is a prerelease version of xDhcpServer.
There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name xDhcpServer -RequiredVersion 3.0.0-preview0003 -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name xDhcpServer -Version 3.0.0-preview0003 -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More



Copyright the DSC Community contributors. All rights reserved.

Package Details


  • DSC Community


DesiredStateConfiguration DSC DSCResourceKit DSCResource


DhcpPolicyOptionValue DhcpReservedIPOptionValue DhcpScopeOptionValue DhcpServerOptionValue xDhcpServerAuthorization xDhcpServerClass xDhcpServerOptionDefinition xDhcpServerReservation xDhcpServerScope DhcpServerBinding DhcpServerExclusionRange


This module has no dependencies.

Release Notes

## [3.0.0-preview0003] - 2021-01-25

### Added

- xDhcpServer
 - Added automatic release with a new CI pipeline ([issue #59](https://github.com/dsccommunity/xDhcpServer/issues/59)).
 - Conceptual help is now generated for each resource on build.
 - Added new resource DhcpServerBinding ([issue #55](https://github.com/dsccommunity/xDhcpServer/issues/55)).
 - Added new resource DhcpServerExclusionRange ([issue #7](https://github.com/dsccommunity/xDhcpServer/issues/7)).

### Changed

- xDhcpServer
 - BREAKING CHANGE: The minimum PowerShell version is 5.0.
- xDhcpServerAuthorization
 - BREAKING CHANGE: The resource is now a single instance resource so
   that it is only possible to use the resource once in a configuration
   with the parameter `Ensure` set to either `Present` or `Absent`
   ([issue #40](https://github.com/dsccommunity/xDhcpServer/issues/40)).
 - The helper function `Get-IPv4Address` was changed from using `Get-WmiObject`
   to `Get-CimInstance` when fetching the enabled IP addresses.
- xDhcpServerOptionDefinition
 - The logic in `Test-TargetResource` was changed somewhat to remove
   unnecessary evaluation of properties that `Get-TargetResource` already
   did. The function `Get-TargetResource` calls `Get-DhcpServerv4OptionDefinition`
   with `OptionId` and `VendorClass` and if an object is returned the property
   `Ensure` is set to `'Present'`, so there are no point for `Test-TargetResource`
   to evaluate those two properties again.
 - Added unit tests for the function `Test-TargetResource`.
 - Reordered the resources in alphabetical order in the README.md.

### Removed

- BREAKING CHANGE: Removed the deprecated resource xDhcpServerOption which
 has been replaced by other DSC resources ([issue #46](https://github.com/dsccommunity/xDhcpServer/issues/46)).
- Removed the file `TestSampleUsingAzure.ps1` as it was not a working example
 of running integration tests.



Version History

Version Downloads Last updated
3.1.1 48,500 8/18/2023
3.1.1-previe... 4 8/18/2023
3.1.0 31,286 5/7/2022
3.1.0-previe... 15 5/6/2022
3.1.0-previe... 14 5/6/2022
3.0.1-previe... 15 5/4/2022
3.0.1-previe... 14 5/4/2022
3.0.1-previe... 15 5/4/2022
3.0.0 72,475 1/25/2021
3.0.0-previe... (current version) 19 1/25/2021
3.0.0-previe... 184 3/22/2020
3.0.0-previe... 20 3/22/2020 144,399 7/25/2018 1,769 6/13/2018 5,020 8/23/2017 24,209 8/10/2016 615 5/18/2016 1,777 2/3/2016
1.2 1,507 5/1/2015
1.1 232 7/22/2014
1.0 83 6/6/2014
Show less