I am also struggling with the same issue that was mentioned above, when I try execute the powershell script, on the line:
"Backup Status" -Head $a -Body "<H2> ERRORSLIST </H2>"|out-file $workingdir\errors.html
The error message is:
You must provide a value expression on the right-hand side of the '-' operator.
At C:\Data\Powershell\HTMLReports\working\htmlreports.ps1:427 char:18
+ "Backup Status" - <<<< Head $a -Body "<H2> ERRORSLIST </H2>"|out-file $workingdir\errors.html
+ CategoryInfo : ParserError: (
+ FullyQualifiedErrorId : ExpectedValueExpression
I dont have much experience with Powershell so Im not sure what the problem is,
does anyone know what the problem could be?
Forgive me if I am missing something silly,