Directory Object Picker

Jun 14, 2011 at 12:19 PM

I use this object to retrieve domain, username to use them for my service.

I receive information in form:

How I can get short name of domain, i.e.




To user them then in installer as a



Jun 23, 2011 at 12:35 AM

Use the GetUserNameFormatted CA, it takes parameters for the format that you want to get back. You want NameSamCompatible .

Jun 28, 2011 at 5:01 PM

Thank you!

One more question

How can I get ONLY domains? 

Jun 28, 2011 at 5:04 PM

I don't think I understand what you mean by "only domains".

Jun 28, 2011 at 5:14 PM

I have an Edit control where user must enter some Domain name. 

I.e. it is the same as Directory Object Picker provides  possibility to select user form some domain:

1) user selects domain form list

2) then selects or find users in this domain

In my case I need only domain names.

Jun 28, 2011 at 5:16 PM

I do this way, user can select computer names, but i need only domain names:


<Publish Property="DSOP_SCOPE_FLAGS" Value="DSOP_SCOPE_FLAG_STARTING_SCOPE" Order="2">1</Publish>                    <Publish Property="DSOP_SCOPE_FILTER_FLAGS" Value="DSOP_FILTER_COMPUTERS" Order="3">1</Publish>                   


<Publish Event="DoAction" Value="DirectoryObjectPicker" Order="5">1</Publish>

Jun 28, 2011 at 11:30 PM

I don't know if it's possible. You should read the MSDN documentation for this thing, all the code does is expose it as a custom action.