I need to figure out a way to query active directory for a users profile path. I need to be able to script this with command line input and output. I want to be able to feed a script a username and the only thing it would output is that user's profile path (or ultimately just the profile server)I also do not want to have to enter the LDAP information.
What I was trying to use was ADFind: adfind.exe -f "sAMAccountName=administrator"
Which gives me a lot of information, but no Profile path.
If anyone has something along those lines that will give me the profile information, I am all ears. Thank you !