Hi,
I am new to the world of Powershell scripting and need some assistance from you guys,
Basically I need to build a list of certificates against a text file of all machines in my domain but also need to list only certificates with keywords within the issuer property.
I am using a -like filter but can seem to only use one of these within my line of code as below…
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such
as a variable or a property.
At line:1 char:196
… PSItem.issuer =“" -and $PSItem.issuer = "”}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such
as a variable or a property.
+ CategoryInfo : ParserError: ( , ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidLeftHandSide
Apologies if the full error is a bit overkill here, just trying to be conscise.
Yes, -or was the final solution, may thanks for both of your helps on getting this sorted out for me.
This is my very first posting on any blog and I am so impressed, you guys are worth your weight in gold!