You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran this against a domain with all Server 2016's the output was fine.
When I run this against another domain with a mix of 2016/2012 non R2 I get output at the bottom "System.Object" - since that isn't translated to a DC name is this bad output, an error in syntax or is this to be expected?
"DC01","Microsoft Windows Server 2012 Datacenter","KB4571702","True"
"DC01","Microsoft Windows Server 2012 Datacenter","KB4577038","True"
"DC01","Microsoft Windows Server 2012 Datacenter","KB4571702","True"
"DC01","Microsoft Windows Server 2012 Datacenter","KB4577038","True"
"DC02","Microsoft Windows Server 2012 Datacenter","KB4571702","True"
"DC02","Microsoft Windows Server 2012 Datacenter","KB4577038","True"
"DC02,"Microsoft Windows Server 2012 Datacenter","KB4571702","True"
"DC02,"Microsoft Windows Server 2012 Datacenter","KB4577038","True"
"DC03","Microsoft Windows Server 2016 Standard","KB4571694","True" "System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
The text was updated successfully, but these errors were encountered:
It's doing a "foreach" on the whole array, leading to every item being a System.Object[] to log. This specific issue can be fixed by changing 426 to:
$DC = $_.Inputobject
But that that continues to log each server as having no KB installed directly after stating that it did. I don't believe Compare-Object has the semantics that it's being used for here.
When I ran this against a domain with all Server 2016's the output was fine.
When I run this against another domain with a mix of 2016/2012 non R2 I get output at the bottom "System.Object" - since that isn't translated to a DC name is this bad output, an error in syntax or is this to be expected?
Example,
"DomainController","OperatingSystem","Update","Compliance"
"DC01","Microsoft Windows Server 2012 Datacenter","KB4571702","True"
"DC01","Microsoft Windows Server 2012 Datacenter","KB4577038","True"
"DC01","Microsoft Windows Server 2012 Datacenter","KB4571702","True"
"DC01","Microsoft Windows Server 2012 Datacenter","KB4577038","True"
"DC02","Microsoft Windows Server 2012 Datacenter","KB4571702","True"
"DC02","Microsoft Windows Server 2012 Datacenter","KB4577038","True"
"DC02,"Microsoft Windows Server 2012 Datacenter","KB4571702","True"
"DC02,"Microsoft Windows Server 2012 Datacenter","KB4577038","True"
"DC03","Microsoft Windows Server 2016 Standard","KB4571694","True"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
"System.Object[]","System.Object[]","No KB Installed for CVE-2020-1472","False"
The text was updated successfully, but these errors were encountered: