Details of the scenario you tried and the problem that is occurring
Here is the DSC setup:
xIISModule DisableWebDAVModule
{
Ensure = 'Absent'
Name = 'WebDAVModule'
Path = "IIS:\"
RequestPath = '%windir%\System32\inetsrv\webdav.dll'
Verb = "*"
}
When run, it fails:
VERBOSE: [WEB-QAT-VM1]: LCM: [ Start Resource ] [[xIisModule]DisableWebDAVModule]
VERBOSE: [WEB-QAT-VM1]: LCM: [ Start Test ] [[xIisModule]DisableWebDAVModule]
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Getting Handler for WebDAVModule
in Site
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Get-TargetResource has been run.
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Get-TargetResource has been run.
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] RequestPath is
%windir%\System32\inetsrv\webdav.dll
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Path is IIS:\
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] StatusRequestPath is
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] StatusPath is
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Module present is False
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] ModuleConfigured is False
VERBOSE: [WEB-QAT-VM1]: LCM: [ End Test ] [[xIisModule]DisableWebDAVModule] in 0.1900 seconds.
VERBOSE: [WEB-QAT-VM1]: LCM: [ Start Set ] [[xIisModule]DisableWebDAVModule]
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Getting Handler for WebDAVModule
in Site
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Get-TargetResource has been run.
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] RequestPath is
%windir%\System32\inetsrv\webdav.dll
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Path is IIS:\
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] StatusRequestPath is
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] StatusPath is
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Module present is False
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] ModuleConfigured is False
VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Removing handler
PowerShell Desired State Configuration does not support execution of commands in an interactive mode. Please ensure
that the underlying command is not prompting for user input, such as missing mandatory parameter, confirmation prompt
etc.
VERBOSE: [WEB-QAT-VM1]: LCM: [ End Set ] [[xIisModule]DisableWebDAVModule] in 0.3100 seconds.
The PowerShell DSC resource '[xIisModule]DisableWebDAVModule' with SourceInfo '::51::3::xIISModule' threw one or more
non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel
called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
VERBOSE: [WEB-QAT-VM1]: [] Consistency check completed.
The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually.
Details of the scenario you tried and the problem that is occurring
Here is the DSC setup: xIISModule DisableWebDAVModule { Ensure = 'Absent' Name = 'WebDAVModule' Path = "IIS:\" RequestPath = '%windir%\System32\inetsrv\webdav.dll' Verb = "*" } When run, it fails: VERBOSE: [WEB-QAT-VM1]: LCM: [ Start Resource ] [[xIisModule]DisableWebDAVModule] VERBOSE: [WEB-QAT-VM1]: LCM: [ Start Test ] [[xIisModule]DisableWebDAVModule] VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Getting Handler for WebDAVModule in Site VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Get-TargetResource has been run. VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Get-TargetResource has been run. VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] RequestPath is %windir%\System32\inetsrv\webdav.dll VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Path is IIS:\ VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] StatusRequestPath is VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] StatusPath is VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Module present is False VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] ModuleConfigured is False VERBOSE: [WEB-QAT-VM1]: LCM: [ End Test ] [[xIisModule]DisableWebDAVModule] in 0.1900 seconds. VERBOSE: [WEB-QAT-VM1]: LCM: [ Start Set ] [[xIisModule]DisableWebDAVModule] VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Getting Handler for WebDAVModule in Site VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Get-TargetResource has been run. VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] RequestPath is %windir%\System32\inetsrv\webdav.dll VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Path is IIS:\ VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] StatusRequestPath is VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] StatusPath is VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Module present is False VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] ModuleConfigured is False VERBOSE: [WEB-QAT-VM1]: [[xIisModule]DisableWebDAVModule] Removing handler PowerShell Desired State Configuration does not support execution of commands in an interactive mode. Please ensure that the underlying command is not prompting for user input, such as missing mandatory parameter, confirmation prompt etc.
VERBOSE: [WEB-QAT-VM1]: LCM: [ End Set ] [[xIisModule]DisableWebDAVModule] in 0.3100 seconds. The PowerShell DSC resource '[xIisModule]DisableWebDAVModule' with SourceInfo '::51::3::xIISModule' threw one or more non-terminating errors while running the Set-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
VERBOSE: [WEB-QAT-VM1]: [] Consistency check completed. The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually.
Verbose logs showing the problem
See above.
Suggested solution to the issue
Fix resource
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
OsName : Microsoft Windows Server 2016 Datacenter OsOperatingSystemSKU : DatacenterServerEdition OsArchitecture : 64-bit WindowsBuildLabEx : 14393.3053.amd64fre.rs1_release_inmarket.190612-1836 OsLanguage : en-US OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Name Value
PSVersion 5.1.14393.3053 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.14393.3053 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Version of the DSC module that was used ('dev' if using current dev branch)
Released version in the Azure module gallery