AnsweredAssumed Answered

get PI Points with powershell using the get-pipoint -whereClause option

Question asked by phsutter Champion on Oct 7, 2016
Latest reply on Oct 13, 2016 by phsutter
Branched to a new discussion


I try to get PI points with powershell using the get-pipoint -whereClause option, but even the example from the Livelibrary

get-pipoint -whereClause Tag:=sin*

results in the following error:

PS C:\temp\checkBadStates>> Get-PIPoint -Attributes * Tag -PIServer $srv -WhereClause Tag:=sin*

Get-PIPoint : A positional parameter cannot be found that accepts argument 'Tag'.

At line:1 char:1

+ Get-PIPoint -Attributes * Tag -PIServer $srv -WhereClause Tag:=sin*

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [Get-PIPoint], ParameterBindingException

    + FullyQualifiedErrorId : PositionalParameterNotFound,OSIsoft.PowerShell.GetPIPoint


What is wrong with my statement? Thanks for your help!