Quantcast
Channel: THWACK: All Content - Server & Application Monitor
Viewing all articles
Browse latest Browse all 12281

Any idea how I can add this as a powershell monitor?

$
0
0

I add it to the Script body and run a test but it fails with a -1. If I run it outside of Solarwinds it takes a while but comes back with the correct number of files.

 

#>

Try
{
  $recordings = get-childitem -path "\\bangtest2\d$\recordings" -recurse -ErrorAction Stop | ?{$_.creationtime -gt (get-date).adddays(-1)} | measure
  $recordings.count
}
Catch
{
  [system.exception]
  return -1
}
Finally
{
}


Viewing all articles
Browse latest Browse all 12281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>