diff --git a/lib/specinfra/command/windows.rb b/lib/specinfra/command/windows.rb
index <HASH>..<HASH> 100644
--- a/lib/specinfra/command/windows.rb
+++ b/lib/specinfra/command/windows.rb
@@ -203,13 +203,18 @@ module SpecInfra
           end
       end
 
-      def check_windows_feature_enabled(name)
- 
-         Backend::PowerShell::Command.new do
-           using 'list_windows_features.ps1'
-           exec "@(ListWindowsFeatures | Where-Object {($_.name -eq '#{name}')  -and ($_.State -eq 'enabled')}).count -gt 0"
-         end
+      def check_windows_feature_enabled(name,provider)
  
+        if provider.nil?
+          cmd =  "@(ListWindowsFeatures -feature #{name}).count -gt 0"
+        else
+          cmd =  "@(ListWindowsFeatures -feature #{name} -provider #{provider}).count -gt 0"
+        end
+
+        Backend::PowerShell::Command.new do
+          using 'list_windows_features.ps1'
+          exec cmd
+        end
        end
 
       private
take into account function calls with/without provider