XPath expression examples
The New-XPathQuery, New-XPathQueryGroup and New-XPathExpression cmdlets can be used to create many different query types. This page demonstrates how various expressions are rendered based on their attribute types.
String
Operator | Example |
---|---|
Equals |
|
NotEquals |
|
GreaterThan |
|
GreaterThanOrEquals |
|
LessThan |
|
LessThanOrEquals |
|
IsPresent |
|
IsNotPresent |
|
Contains |
|
StartsWith |
|
EndsWith |
|
Integer
Operator | Example |
---|---|
Equals |
|
NotEquals |
|
GreaterThan |
|
GreaterThanOrEquals |
|
LessThan |
|
LessThanOrEquals |
|
IsPresent |
|
IsNotPresent |
|
Contains |
|
StartsWith |
|
EndsWith |
|
DateTime
Operator | Example |
---|---|
Equals |
|
NotEquals |
|
GreaterThan |
|
GreaterThanOrEquals |
|
LessThan |
|
LessThanOrEquals |
|
IsPresent |
|
IsNotPresent |
|
Contains |
|
StartsWith |
|
EndsWith |
|
Boolean
Operator | Example |
---|---|
Equals |
|
NotEquals |
|
GreaterThan |
|
GreaterThanOrEquals |
|
LessThan |
|
LessThanOrEquals |
|
IsPresent |
|
IsNotPresent |
|
Contains |
|
StartsWith |
|
EndsWith |
|
Reference
Operator | Example |
---|---|
Equals |
|
Equals (expression) |
|
NotEquals |
|
GreaterThan |
|
GreaterThanOrEquals |
|
LessThan |
|
LessThanOrEquals |
|
IsPresent |
|
IsNotPresent |
|
Contains |
|
StartsWith |
|
EndsWith |
|
Text
Querying text attributes is not supported by the FIM service
Binary
Querying binary attributes is not supported by the FIM service
Last updated