Closed jarretlavallee closed 7 years ago
Hi, i've read your fix, thanks for the update, this exception should also apply to windows server 2008 (kernel version 6.0), kernel 6.1 stands for 2008R2
win2008 = Facter.value(:kernelmajversion) == '6.1'
# if win2008 import ServerManager module
By default, powershell version is 1.0 on 2008 and 2.0 on 2008 R2
@BertrandJO Thank you for taking the time to review this. It looks like I had an typo in my PR and commit message as I had only intended to have this on Windows 2008R2. I just pushed a new commit with an additional conditional for Kernel 6.0.
Great ! I will test it tomorrow. Thanks.
Everything works fine
Prior to this PR, the ConvertTo-XML return on Windows 2008R2 returned an invalid XML document from Get-WindowsFeature. This commit limits the data selected for the XML return to the data that is parsed. This PR fixes #86 and should only affect Windows 2008R2 and Windows 2008.