I'm working on this script:
$criteria = @(
@{Filter = "NotEquals"; Field = "_template"; Value = "{A87A00B1-E6DB-45AB-8B54-636FEC3B5523}"}
)
$props = @{
Index = "sitecore_master_index"
Criteria = $criteria
}
Find-Item @props
However I kept on getting this error:
Find-Item : Cannot bind parameter 'Criteria'. Cannot create object of type "Spe.Commands.Data.Search.SearchCriteria". Cannot convert value "NotEquals" to type "Spe.Commands.Data.Search.FilterType". Error: "Unable to match the identifier name NotEqual to a valid enumerator name.
I tried keywords for Filter such as: "Equals"
, "Equal"
, "NotContains"
but still I kept getting the same error. Anynone could help me what's causing the issue? Basically I just want to exclude a certain items based on its templateid
.
thanks