Automating Daily Checks with Powershell

  • I'm getting some of the results, but not all - I have one error I'm trying to track down:

    You cannot call a method on a null-valued expression.

    At C:\Autochecks\htmlreports.ps1:79 char:28

    + $line = $line.TrimEnd <<<< ();

    + CategoryInfo : InvalidOperation: (TrimEnd:String) [], RuntimeException

    + FullyQualifiedErrorId : InvokeMethodOnNull

    Any ideas/suggestions are welcome!


  • Is devstageserverlist.txt or ignorelist.txt "empty"?

  • Thanks for the response. Yes, the Ignorelist was empty - as soon as I gave it a server to ignore, that error went away.


Viewing 3 posts - 46 through 47 (of 47 total)

You must be logged in to reply to this topic. Login to reply