I've set this up as I'm looking to create a full-on daily server checks checks myself, so this was very timely.
I'm getting an error though:
You must provide a value expression on the right-hand side of the '-' operator.
At C:\SQLChecks\htmlreports.ps1:427 char:18
+ "Backup Status" - <<<< Head $a -Body "<H2> ERRORSLIST </H2>"|out-file $workingdir\errors.html
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : ExpectedValueExpression
The line at the location is:
"Backup Status" -Head $a -Body "<H2> ERRORSLIST </H2>"|out-file $workingdir\errors.html
As I don't know anything about the inner working of PowerShell yet, Help?
DBA (Dogsbody with Bad Attitude)