In the query portion of creating a business unit:
Group Query Section
$rules = $unit.GetMembershipRules()
$rule = $rules.Create("ADM_BUSINESSUNITMEMBERSHIPTYPE_QUERY")
$rule.Exclude = $false
$rule.BaseObjectPath = $null
$rule.Scope = "ADS_SCOPE_SUBTREE"
$criteria = New-AdmCriteria "group" {name -startswith "MyCritera"}
$rule.SetCriteria($criteria)
$rules.Add($rule)
Is there a way to specify the parent in this as well? Such as when you create it via the console you can specify which domain or which OU in the domain you want to search by.
Sorry if this is specified somewhere, but I couldn't find it.