Jean-Jacques CELMA
asked on
Powershell script : Get-ADOrganizationalUnit in windows list box
Dear All,
I have this structure in my AD
DC=lan
DC=MyDomain
OU=Root
OU=ou1
OU=ou11
OU=ou12
OU=ou2
OU=ou21
OU=ou22
OU=ou3
OU=ou31
OU=ou32
I would like to use the cmdlet Get-ADOrganizationalUnit to display ou1, ou2 and ou3 only (not the sub OU) in a windows list box in order to select them for next action.
I can't see how to achieve this?
Thks
JJC
I have this structure in my AD
DC=lan
DC=MyDomain
OU=Root
OU=ou1
OU=ou11
OU=ou12
OU=ou2
OU=ou21
OU=ou22
OU=ou3
OU=ou31
OU=ou32
I would like to use the cmdlet Get-ADOrganizationalUnit to display ou1, ou2 and ou3 only (not the sub OU) in a windows list box in order to select them for next action.
I can't see how to achieve this?
Thks
JJC
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thks you