Get summary of computers with update in error and send an html report by mail.

Add to favorites
Windows Update
E-mail Twitter Digg Facebook
  • Error
    7 Posts | Last post March 12, 2018
    • Hi! Firts i would like to thank you for your script. When i try to run i have a error message:
      the property 'Count' cannot be found on this object. Verify that the property exists.
      t C:\temp\WsusComputerReport.ps1:58 char:3
         $outputText = [string]($summariesComputerFailed).Count + " computer ...
         + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException
         + FullyQualifiedErrorId : PropertyNotFoundStrict
    • Hi on which OS have this error? I tested my scripts only on Windows Server 2016..
    • I try to use Windows Server 2016
    • I think that I foud the cause of your error, there was a problem when computers with failed updates were not detected.
      I change this line:
      If ($summariesComputerFailed -EQ 0){
      to correctly manage the null value too:
      If ($summariesComputerFailed -EQ 0 -or $summariesComputerFailed -EQ $null){
      With version 1.4 you should not have any problems anymore...
    • Thank You!
       I try it Monday.-) Have a nice weekend.
    • It's working:-)
    • Prefect, thanks for your error segnalation and for your feedback!