Also note that the query here isn't going to natively do a substring match. Assuming you want to find folders on a specific server you really need \5c\5cdirectorypath*
Thanks, Brian Desmond [email protected] c - 312.731.3132 From: MarvinC [mailto:[email protected]] Sent: Tuesday, 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 <[email protected]<mailto:[email protected]>> wrote: try (homedirectory=\5c\5cdirectorypath) On Tue, Feb 24, 2009 at 9:48 PM, MarvinC <[email protected]<mailto:[email protected]>> wrote: dsquery * domainroot -filter "(&(objectCategory=Person)(objectClass=User)(homeDirectory=\\directorypath))" -attr sAMAccountName homeDirectory > c:\temp\hdir.csv This "simple" query is suppose to write all domain users who homeDirectory path resides on a particular server. The file gets created and there are no errors but nothings' written to it. Can someone quide me on what it is I'm doing wrong? Any responses appreciated ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
