Link to home
Start Free TrialLog in
Avatar of LyonJay
LyonJayFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Active Directory Query - Checking Profile

Dear all,

We currently have two file servers and i need to quickly check in my Active Directory Users & Computers which users have there profile paths starting with \\tctfile does anyone know how i can create this script as i cannot find a option in the query editor for profile path?

Thanks,

Lyon
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or using oBdA's syntax

dsquery user -name * -limit 0 | dsget user -fn -ln -samid -hmdir | find /i "\\tctfile" >c:\home_drives.txt

@oBdA: sorry for using part of your syntax :)

Krzysztof
Avatar of LyonJay

ASKER

Does anyone know a Powershell way of doing this?

Thanks,

Lyon
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LyonJay

ASKER

What about without Quest?

Thanks,