So I am trying to make reports for our servers and one thing is bizarre to me and I do not understand it.
Commands:
#List all Patches within the last 7 days and stores the results in an array variable.
[array]$Patches = Get-HotFix | ? {$_.InstalledOn -gt (Get-Date).AddDays(-7)} | Select HotfixID,InstalledOn | Sort InstalledOn | FT -AutoSize
#Create HTML file
$Patches | ConvertTo-Html -Fragment -As Table | Out-file D:\Test.html
However when viewed I always get strange data displayed. I know this is an amatuer mistake and was hoping someone explain a better way. Currently I have DNS checks and Ping test and uptime and when I get to the hotfixes it pushes out this data.
Thanks in advance for your kind assistance.
ClassId2e4f51ef21dd47e99d3c952918aff9cd | pageHeaderEntry | pageFooterEntry | autosizeInfo | shapeInfo | groupingEntry |
---|---|---|---|---|---|
033ecb2bc07a4d43b5ef94ed5a35d280 | Microsoft.PowerShell.Commands.Internal.Format.AutosizeInfo | Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo | |||
9e210fe47d09416682b841769c78b8a3 | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c | |||||
27c87ef9bbda4f709f6b4002fa4af63c |