Retrieve list of profile home folder paths

D

DreTheDog

Greetings All,

I need to verify the paths of all our users in Active Directory (AD). My
only way of doing this presently is clicking on each name and manually
checking. I have no skills in scripting and very limited in command-line
basics. Is there a way to build a list of the UserName and Path of their
Home Folder? If not, it will be a really long night.

Thanks for any help.
 
T

Tomasz Onyszko

DreTheDog said:
Greetings All,

I need to verify the paths of all our users in Active Directory (AD). My
only way of doing this presently is clicking on each name and manually
checking. I have no skills in scripting and very limited in command-line
basics. Is there a way to build a list of the UserName and Path of their
Home Folder? If not, it will be a really long night.

You can use csvde

example:
csvde -m -f out.csv -d "dc=fabnoa,dc=fabcorp,dc=fabrikam,dc=com" -s DC1
-r "(objectCategory=person)" -l "samAccountName,homedirectory"

od course you have to customize domain name (after -d switch) and domain
conroller name (after -s switch)
 
J

Jerold Schulman

Greetings All,

I need to verify the paths of all our users in Active Directory (AD). My
only way of doing this presently is clicking on each name and manually
checking. I have no skills in scripting and very limited in command-line
basics. Is there a way to build a list of the UserName and Path of their
Home Folder? If not, it will be a really long night.

Thanks for any help.
If you have a Windows XP workstation with the W2K3 AdminPak.msi installed, you can access your W2K AD with the Active Directory Command-Line tools.

dsquery * domainroot -filter "(&(objectCategory=Person)(objectClass=User))" -attr sAMAccountName distinguishedName homeDirectory -limit 0

See tip 7714 » What attribute names can I use with the user filtered dsquery command?
and links in the 'Tips & Tricks' at http://www.jsifaq.com
See tip 7992 » How do I know what attribute names to use when performing a 'DSQUERY *'?


You can use ADFIND.EXE freeware, tip 5898 » Freeware ADFind.

adfind -default -rb cn=users -f "&(objectcategory=person)" sAMAccountName homeDirectory
 
R

rob

This would be something that might be useful to me as well. Is there
any way to do this for only a specific list of users, like from a
spreadsheet? I have to grab this info 100s of times a day and batching
them and getting it all at once would be so much easier.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top