diff --git a/library/windows/win_feature.ps1 b/library/windows/win_feature.ps1 index cbb73789f48..4391de5eef3 100644 --- a/library/windows/win_feature.ps1 +++ b/library/windows/win_feature.ps1 @@ -58,6 +58,9 @@ Elseif ($state -eq "absent") { Fail-Json $_.Exception.Message } } +Else { + $state = "present" +} $feature_results = @() ForEach ($item in $result.FeatureResult) {