This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Powershell to create dynamic query

Using the powershell SDK group creation am try to create one script for my environment to create group sub group and some nodes need to assign.

unable to pass "like" function.

If i pass Caption='$Group' in the below snippet then its working fine but i need the contain or starting with function if i mention LIKE then its not working please help me in this.

Below is to create dynamic query using powershell

Below one i tried with LIKE is not working

$subgroupmembersSW = @(

    @{ Name = "Subgroup"; Definition = "filter:/Orion.Nodes[Caption LIKE '$G']"}

    )