Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xWindowsOptionalFeature - Does not support state "DisabledWithPayloadRemoved" #734

Open
pubsquash opened this issue Oct 22, 2021 · 0 comments
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.

Comments

@pubsquash
Copy link

pubsquash commented Oct 22, 2021

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)

# insert configuration here
            xWindowsOptionalFeature WindowsOptionalFeature_Disable_SMB1
            {
                Name                 = "SMB1Protocol"
                Ensure               = "Absent"
                RemoveFilesOnDisable = $true
            }

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

@johlju johlju added 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. labels Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants