RE: A simple yet...not so simple ??

2009-02-26 Thread Brian Desmond
esday, February 24, 2009 9:43 PM To: NT System Admin Issues Subject: Re: A simple yet...not so simple ?? Same here. Thanks On Tue, Feb 24, 2009 at 10:10 PM, KenM mailto:kenmli...@gmail.com>> wrote: try (homedirectory=\5c\5cdirectorypath) On Tue, Feb 24, 2009 at 9:48 PM, MarvinC mailto:marv..

RE: A simple yet...not so simple ??

2009-02-25 Thread Michael B. Smith
) " -csv -nodn sAMAccountName givenName homeDirectory > c:\temp\scripts\adinfo\hd.csv From: MarvinC [mailto:marv...@gmail.com] Sent: Wednesday, February 25, 2009 1:39 PM To: NT System Admin Issues Subject: Re: A simple yet...not so simple ?? Adfind for some reason returns the dn

Re: A simple yet...not so simple ??

2009-02-25 Thread KenM
c:\temp\scripts\adinfo\hd.csv >>> >>> >>> >>> Adfind has been around a long time, much longer than dsquery, and is much >>> more powerful. Basic syntax for dsquery was basically stolen from adfind. >>> J >>> >>> >>> >>>

Re: A simple yet...not so simple ??

2009-02-25 Thread Steven Peck
nfo\hd.csv >> >> >> >> Adfind has been around a long time, much longer than dsquery, and is much >> more powerful.  Basic syntax for dsquery was basically stolen from adfind. J >> >> >> >> From: MarvinC [mailto:marv...@gmail.com] >> Sent: Wedn

Re: A simple yet...not so simple ??

2009-02-25 Thread MarvinC
uch longer than dsquery, and is much >> more powerful. Basic syntax for dsquery was basically stolen from adfind. >> J >> >> >> >> *From:* MarvinC [mailto:marv...@gmail.com] >> *Sent:* Wednesday, February 25, 2009 12:27 PM >> >> *To:* NT System Admin Issue

Re: A simple yet...not so simple ??

2009-02-25 Thread KenM
ore powerful. Basic syntax for dsquery was basically stolen from adfind. > J > > > > *From:* MarvinC [mailto:marv...@gmail.com] > *Sent:* Wednesday, February 25, 2009 12:27 PM > > *To:* NT System Admin Issues > *Subject:* Re: A simple yet...not so simple ?? > > > &

RE: A simple yet...not so simple ??

2009-02-25 Thread Michael B. Smith
a long time, much longer than dsquery, and is much more powerful. Basic syntax for dsquery was basically stolen from adfind. J From: MarvinC [mailto:marv...@gmail.com] Sent: Wednesday, February 25, 2009 12:27 PM To: NT System Admin Issues Subject: Re: A simple yet...not so simple ?? This

Re: A simple yet...not so simple ??

2009-02-25 Thread MarvinC
as a home directory… >> >> >> >> *From:* MarvinC [mailto:marv...@gmail.com] >> *Sent:* Wednesday, February 25, 2009 9:17 AM >> *To:* NT System Admin Issues >> *Subject:* Re: A simple yet...not so simple ?? >> >> >> >> Tried that with

Re: A simple yet...not so simple ??

2009-02-25 Thread MarvinC
e without a share as a home directory… > > > > *From:* MarvinC [mailto:marv...@gmail.com] > *Sent:* Wednesday, February 25, 2009 9:17 AM > *To:* NT System Admin Issues > *Subject:* Re: A simple yet...not so simple ?? > > > > Tried that with this and still no luck: > >

RE: A simple yet...not so simple ??

2009-02-25 Thread Michael B. Smith
ks. Note that you PROBABLY want a "*" after myserver. You shouldn't be able to specify a servername without a share as a home directory. From: MarvinC [mailto:marv...@gmail.com] Sent: Wednesday, February 25, 2009 9:17 AM To: NT System Admin Issues Subject: Re: A simple yet...not

Re: A simple yet...not so simple ??

2009-02-25 Thread MarvinC
Tried that with this and still no luck: dsquery * domainroot -filter "(&(objectCategory=Person)(objectClass=User)(homedirectory=\5c\5c\myserver$))" -attr sAMAccountName homeDirectory > c:\temp\scripts\adinfo\hdprofile.csv and with this: dsquery * domainroot -filter "(&(objectCategory=Person)(ob

Re: A simple yet...not so simple ??

2009-02-24 Thread MarvinC
Same here. Thanks On Tue, Feb 24, 2009 at 10:10 PM, KenM wrote: > try (homedirectory=\5c\5cdirectorypath) > > > > > > > On Tue, Feb 24, 2009 at 9:48 PM, MarvinC wrote: > >> dsquery * domainroot -filter >> "(&(objectCategory=Person)(objectClass=User)(homeDirectory=\\directorypath))" >> -attr sAM

Re: A simple yet...not so simple ??

2009-02-24 Thread MarvinC
I'll give this a try. Thanks On Tue, Feb 24, 2009 at 10:07 PM, Michael B. Smith < mich...@theessentialexchange.com> wrote: > The “\” character is a special character in LDAP query strings and must > be escaped. The basic escape character in LDAP is, you guessed it, the “\” > character. (There i

Re: A simple yet...not so simple ??

2009-02-24 Thread KenM
try (homedirectory=\5c\5cdirectorypath) On Tue, Feb 24, 2009 at 9:48 PM, MarvinC wrote: > dsquery * domainroot -filter > "(&(objectCategory=Person)(objectClass=User)(homeDirectory=\\directorypath))" > -attr sAMAccountName homeDirectory > c:\temp\hdir.csv > > This "simple" query is suppose to

RE: A simple yet...not so simple ??

2009-02-24 Thread Michael B. Smith
The "\" character is a special character in LDAP query strings and must be escaped. The basic escape character in LDAP is, you guessed it, the "\" character. (There is another way to escape UTF-8 characters in LDAP, but we won't go there right now. For details, see: