when i am trying to execute the below PowerShell command, i got error .
The command :
*PS cert:\currentuser\authroot> gci | where subject -like "UTN"*
The error is below :
Where-Object : Cannot bind parameter 'FilterScript'. Cannot convert the "subject" value of type "System.String" to type "System.Management.Automation.ScriptBlock". At line:1 char:12 + gci | where <<<< subject -like "UTN" + CategoryInfo : InvalidArgument: (:) [Where-Object], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.WhereObjectCommand
I am using windows PowerShell ISE.
a workable solution is highly appreciated