I am trying to get the DN of a user account via a ADUC and an attached taskpad.

Though able to reconstruct the DN from the $NAME<0> $NAME<1> etc parameters
- the DN required for DSGET does not like commas hence any commas have to
have a "\" infront.

My question - is there an easier way of getting the full DN of a user
account using a taskpad ?

a second question - are there any other variables apart from $COL and $NAME ?
many thanks
Martin

RE: Getting the DN ( distingished name) using Taskpad parameters by winmasterplan

winmasterplan
Wed Jun 18 01:28:02 PDT 2008

Hi,

To do this, you must have in taskpad command cmd.exe with parameters:
/k dsquery user -name "$COL<0>"
The parameters name and col are automatically choosed by wizard...for
example user name attribute is $COL<0> and e-mail address is $COL<10>.

Have a nice day!


"mart the bike rider" wrote:

> I am trying to get the DN of a user account via a ADUC and an attached taskpad.
>
> Though able to reconstruct the DN from the $NAME<0> $NAME<1> etc parameters
> - the DN required for DSGET does not like commas hence any commas have to
> have a "\" infront.
>
> My question - is there an easier way of getting the full DN of a user
> account using a taskpad ?
>
> a second question - are there any other variables apart from $COL and $NAME ?
> many thanks
> Martin

Re: Getting the DN ( distingished name) using Taskpad parameters by Jorge

Jorge
Wed Jun 18 02:33:45 PDT 2008

you something like is mentioned here: http://www.kouti.com/scripts.htm

search for employeeID.

instead of retrieving the employeeid attribute retrieve the
distinguishedName

--

Cheers,
(HOPEFULLY THIS INFORMATION HELPS YOU!)

# Jorge de Almeida Pinto # MVP Identity & Access - Directory Services #

BLOG (WEB-BASED)--> http://blogs.dirteam.com/blogs/jorge/default.aspx
BLOG (RSS-FEEDS)--> http://blogs.dirteam.com/blogs/jorge/rss.aspx
------------------------------------------------------------------------------------------
* How to ask a question --> http://support.microsoft.com/?id=555375
------------------------------------------------------------------------------------------
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always test ANY suggestion in a test environment before implementing!
------------------------------------------------------------------------------------------
#################################################
#################################################
------------------------------------------------------------------------------------------
"Masterplan" <winmasterplan@gmail.com.> wrote in message
news:778EAF74-A5E2-480D-889B-5132C5EC3C69@microsoft.com...
> Hi,
>
> To do this, you must have in taskpad command cmd.exe with parameters:
> /k dsquery user -name "$COL<0>"
> The parameters name and col are automatically choosed by wizard...for
> example user name attribute is $COL<0> and e-mail address is $COL<10>.
>
> Have a nice day!
>
>
> "mart the bike rider" wrote:
>
>> I am trying to get the DN of a user account via a ADUC and an attached
>> taskpad.
>>
>> Though able to reconstruct the DN from the $NAME<0> $NAME<1> etc
>> parameters
>> - the DN required for DSGET does not like commas hence any commas have to
>> have a "\" infront.
>>
>> My question - is there an easier way of getting the full DN of a user
>> account using a taskpad ?
>>
>> a second question - are there any other variables apart from $COL and
>> $NAME ?
>> many thanks
>> Martin