diff --git a/lib/puppet/provider/windowsfeature/default.rb b/lib/puppet/provider/windowsfeature/default.rb index d9c795c..f34f669 100644 --- a/lib/puppet/provider/windowsfeature/default.rb +++ b/lib/puppet/provider/windowsfeature/default.rb @@ -25,7 +25,7 @@ def self.instances result = if win2008 == true ps('Import-Module ServerManager; Get-WindowsFeature | Select Name,Installed | ConvertTo-XML -As String -Depth 4 -NoTypeInformation') else - ps('Get-WindowsFeature | ConvertTo-XML -As String -Depth 4 -NoTypeInformation') + ps('Get-WindowsFeature | Select Name,Installed | ConvertTo-XML -As String -Depth 4 -NoTypeInformation') end # create the XML document and parse the objects xml = Document.new result