Scope Parameter (Connect-LDAP Cmdlet)
Whether to limit the scope of the search to the whole subtree (BaseDN and all of its descendants), a single level (BaseDN and its direct descendants), or the base object (BaseDN only).
Syntax
Connect-LDAP -Scope string
Possible Values
WHOLESUBTREE, SINGLELEVEL, BASEOBJECTData Type
cstr
Default Value
"WHOLESUBTREE"
Remarks
Limiting scope can greatly improve search performance. Set Scope to one of the following values:
- WholeSubtree: Limit the scope of the search to the BaseDN and all of its descendants.
- SingleLevel: Limit the scope of the search to the BaseDN and its direct descendants.
- BaseObject: Limit the scope of the search to the base object only (BaseDN).
This is a required parameter.