Parsing Errors
Posted: Fri Mar 11, 2016 7:48 pm
Shannon,
I have some basic PS scripts that work in PS but when executed through the plugin fails.
Script:
$app = gwmi -Class win32_product | Where-Object {$_.Name -eq "ZixM*"}
$app.Uninstall()
Via Plugin produces the following:
Executing -> $app = gwmi -Class win32_product | Where-Object {$_.Name -eq `"ZixM*"`}
$app.Uninstall()
<#><#><#>You must provide a value expression on the right-hand side of the '-eq' operato
r.
At line:1 char:61
+ $app = gwmi -Class win32_product | Where-Object {$_.Name -eq <<<< `ZixM*`}
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : ExpectedValueExpression
Ideas on how to resolve?
Thanks.
Jeff
I have some basic PS scripts that work in PS but when executed through the plugin fails.
Script:
$app = gwmi -Class win32_product | Where-Object {$_.Name -eq "ZixM*"}
$app.Uninstall()
Via Plugin produces the following:
Executing -> $app = gwmi -Class win32_product | Where-Object {$_.Name -eq `"ZixM*"`}
$app.Uninstall()
<#><#><#>You must provide a value expression on the right-hand side of the '-eq' operato
r.
At line:1 char:61
+ $app = gwmi -Class win32_product | Where-Object {$_.Name -eq <<<< `ZixM*`}
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : ExpectedValueExpression
Ideas on how to resolve?
Thanks.
Jeff