xWindowsOptionalFeature - Does not support state "DisabledWithPayloadRemoved" #734
Labels
enhancement
The issue is an enhancement request.
good first issue
The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
help wanted
The issue is up for grabs for anyone in the community.
Details of the scenario you tried and the problem that is occurring
Testing on Windows server 2012R2, the feature is disabled and removed, but the test keeps failing as it doesn't have logic for the DisabledWithPayloadRemoved state.
Verbose logs showing the problem
Finished Test-TargetResource on the 'SMB1Protocol' feature.
VERBOSE: [DW0991FIAPP046]: LCM: [ End Test ] [[xWindowsOptionalFeature]WindowsOptionalFeature_Disable_SMB1] False in 1.3130
seconds.
VERBOSE: [DW0991FIAPP046]: LCM: [ End Resource ] [[xWindowsOptionalFeature]WindowsOptionalFeature_Disable_SMB1]
VERBOSE: [DW0991FIAPP046]: LCM: [ End Compare ] Completed processing compare operation. The operation returned False.
VERBOSE: [DW0991FIAPP046]: LCM: [ End Compare ] in 1.4070 seconds.
Suggested solution to the issue
Add support for the above state: DisabledWithPayloadRemoved
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 2012 R2 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsBuildLabEx : 9600.20111.amd64fre.winblue_ltsb_escrow.210812-0920
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Name Value
PSVersion 5.1.14409.1018
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1018
CLRVersion 4.0.30319.36627
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version of the DSC module that was used
xpsdesiredstateconfiguration.9.1.0.nupkg
The text was updated successfully, but these errors were encountered: