Get-OrganizationalUnit cmdlet returns the information about an organizational unit.

Input parameters 

#
Parameter
Type

Mandatory (R/O)

Description
Valid Values
1 Authentication Information (all parameters)  
2 Count int O The number of the returned items (after Offset parameter is specified and processed)

Min value is 1, max - 1000.

If not specified, equals to 100 (the default value).

3 Filter string O This parameter allows to filter values by condition  
4

Identity

(aliases: OrgUnitID, Name)

string O A property, that is used for managing the organizational unit

Value of one of these parameters can be used as Identity:

#ParameterDescription
1 OrgUnitID Organizational unit identifier
2 Name Name of the organizational unit
5 Offset int O A number of the item, starting from which the items should be returned

Min value is 1.

If not specified, equals to 1 (the default value).

Output parameters

OrganizationalUnitInfo

Example of using G et-OrganizationalUnit cmdlet

Getting information about OU with Name "test":

Get-OrganizationalUnit test

Getting all organizational units of the account with the Name like "test":

Get-OrganizationalUnit -Filter {Name -like 'test*'}