Skip to content

DnsServerSetting: The property ServerLevelPluginDll cannot be set to $null or empty string #259

@johlju

Description

@johlju

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

There is a problem with the property ServerLevelPluginDll as it is not possible to revert the setting to not point to a .dll once it has been set. This migh be either an issue with the cmdlet Set-DnsServerSetting or there is a way to set this that is unknown to me.

Verbose logs showing the problem

PS > $a = Get-DnsServerSetting  -All
PS > $a.ServerLevelPluginDll = 'c:\temp\plugin.dll'
PS > $a | Set-DnsServerSetting
PS > $a = Get-DnsServerSetting  -All
PS > $a.ServerLevelPluginDll
c:\temp\plugin.dll
PS > $a.ServerLevelPluginDll = ''
PS > $a | Set-DnsServerSetting
PS > $a = Get-DnsServerSetting  -All
PS > $a.ServerLevelPluginDll
c:\temp\plugin.dll
PS > $a.ServerLevelPluginDll = $null
PS > $a | Set-DnsServerSetting
PS > $a = Get-DnsServerSetting  -All
PS > $a.ServerLevelPluginDll
c:\temp\plugin.dll
### Suggested solution to the issue
Unknown.

### The DSC configuration that is used to reproduce the issue (as detailed as possible)
Not applicable.

### The operating system the target node is running

OsName : Microsoft Windows Server 2016 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture : 64-bit
WindowsBuildLabEx : 14393.4283.amd64fre.rs1_release.210303-1802
OsLanguage : en-US
OsMuiLanguages : {en-US}


### Version and build of PowerShell the target node is running

Name Value


PSVersion 5.1.14393.3866
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.3866
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1


### Version of the DSC module that was used
3.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions