Get-WSUSReportComputersInError.ps1

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

 
 
 
 
 
(0)
Add to favorites
Windows Update
3/10/2018
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • 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!