0 votes

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.

by (40 points)

1 Answer

0 votes
by (279k points)

Hello,

Have a look at the following articles:

Both have examples on configuring business unit membership rules the way you need it.

Related questions

0 votes
1 answer

Hello, I have some AD Groups I would like to exclude from a business unit I'm using. I have standard group names across multiple OUs, some should be a part of the ... than simply having a working exclude query. Any thoughts on how I can get this working?

asked Mar 24, 2016 by drew.tittle (810 points)
0 votes
1 answer

I have 18 domains managed by Adaxes and have noticed that Admin (full access) t all objects acts normally, but for piecemeal scopes like Service Desk that scopes to individual ... role (including 16 denies) and expect it to grow as we add more domains.

asked Sep 20, 2022 by DA-symplr (80 points)
0 votes
1 answer

Hi We have a set of business rules which are used for creating new distribution lists, these rules all have the same activity scope of a number of OUs, but the number of OUs ... when a new OU is created, it's not missed from the activity scope. Thanks Matt

asked May 12, 2022 by chappers77 (2.0k points)
0 votes
1 answer

I created a scheduled task (to export data) with a domain as its activity scope, runs perfectly. I modified it to use a Business Unit as its activity scope, now it ... the task effective for" should be checked, but the property is not editable in the dialog.

asked Mar 23, 2015 by sbanks (270 points)
0 votes
1 answer

Dear colleagues, can you please advise if it is possible to create (and update reqularly) business unit of computer objects based on a query to external SQL DB (hostnames stored in SQL)? Thanks!

asked Dec 14, 2022 by Dmytro.Rudyi (920 points)
3,434 questions
3,130 answers
7,984 comments
546,325 users