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

asked on

Script to check profile paths in AD

Dear all,

We are currently moving all profiles from one server to another but i need to check which users in active directory still have there profile paths set to the old server.

Do anyone have a script that could show me a print out of who still have there profile path set to the old server?

Thanks,

Lyon
ASKER CERTIFIED SOLUTION
Avatar of Krzysztof Pytko
Krzysztof Pytko
Flag of Poland image

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
Avatar of LyonJay

ASKER

Where would i run them querys from?

Thanks,

Lyon
both from a command prompt.
it's also good example :)

There is many ways for that :) PowerShell, CSVDE, LDIFDE, DS Tools, ADFind aso.
Usage depends on user preferences, I prefer using DS Tools :)

Krzysztof
Avatar of LyonJay

ASKER

Thanks guy!

Will have a go and get back to you!
Avatar of LyonJay

ASKER

demazter,

your query just errored out.

Thanks,

Lyon
possibly you don't have permissions to C:

take the c:\ off.

Try:

CSVDE -f PROFILES.CSV -l "profilepath"
the -l is a lowercase L not an i.
Avatar of LyonJay

ASKER

That didnt work.

Thanks,

Lyon
odd, what's the error you are getting?
and where you are typing this command? I would suggest doing that on a DC :)

Krzysztof