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
Parsing Errors
Re: Parsing Errors
Yeap, simply add a ( ; ) between commands
like so...
like so...
Code: Select all
$app = gwmi -Class win32_product | Where-Object {$_.Name -eq "ZixM*"};$app.Uninstall()
Re: Parsing Errors
Jeff,
Your gonna like this!!!
Save scrips in script manager!! Execute scripts at the PC Console
Oh how yummy!!
Your gonna like this!!!
Save scrips in script manager!! Execute scripts at the PC Console
Oh how yummy!!
- starbucksgold
- Posts: 26
- Joined: Tue Jan 05, 2016 7:53 pm
- 8
Re: Parsing Errors
You are right...I like this.
Thanks.
Jeff
Thanks.
Jeff
Re: Parsing Errors
need to add a prams passer to the script executer.. thats next..