Quantcast
Viewing all articles
Browse latest Browse all 21975

get-adorganizationalunit problem

Hi

I'm trying to run this command as part of a script:

Load-ComboBox -ComboBox $comboboxOU (Get-ADOrganizationalUnit -SearchBase 'OU=Users,OU=Lab OU,DC=mylab,DC=local' -filter *).Name
$comboboxOU.SelectedIndex = 0

When I run the command it runs ok, but I get NO results.

if I remove .Name then I get a list of all my OU's .. as soon as I add .Something.. it just returns nothing

IdeaS?


Kindest regards, Martin


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>