dsccommunity / xDhcpServer

This module contains DSC resources for deployment and configuration of Microsoft DHCP Server.
MIT License
26 stars 33 forks source link

Resource 'DhcpServerExclusionRange' not found #68

Closed markatdxb closed 4 years ago

markatdxb commented 4 years ago

Details of the scenario you tried and the problem that is occurring

Just tried to execute DSC to create DHCP exclusions. Other DSC resource xDhcpServerScope works just fine

Verbose logs showing the problem

Suggested solution to the issue

The DSC configuration that is used to reproduce the issue (as detailed as possible)


# insert configuration here
``- name: Create scopes exclusions
  win_dsc:
    resource_name: DhcpServerExclusionRange
    ScopeID: "{{ dhcp_range+'.'+item.value.number|string+'.0'}}"
    IPStartRange: "{{ dhcp_range }}.{{item.value.exclusions[0].exstart}}"
    IPEndRange: "{{ dhcp_range }}.{{item.value.exclusions[0].exend}}"
    Ensure: present
  loop: "{{ lookup('dict', dhcp_set) }}"`

#### The operating system the target node is running
<!--
    Please provide as much as possible about the target node, for example
    edition, version, build and language.
    On OS with WMF 5.1 the following command can help get this information.
OsName               : Microsoft Windows Server 2019 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}
-->
#### Version and build of PowerShell the target node is running
<!--
    To help with this information, please run this command:
    $PSVersionTable
-->

#### Version of the DSC module that was used
markatdxb commented 4 years ago

Closing the issue - just installed the pre-release which fixed the problem