LDAP query for Terminal Services Profile Path

Has anyone come across issue with running LDAP query for terminal profiles profile path?

I can query for specific profile path from ADUC, but the same does not work for TS profile path
i.e.
(&(objectclass=user)(ProfilePath=*<STRING_1>*)) works fine
 but
(&(objectclass=user)(TerminalServicesProfilePath=*<STRING_2>*)) will not give you any results&.

TerminalServicesProfilePath attribute does not seem to be accepted when put that way. There must be some easy way to run this query other then scripting it or/and using tscmd from sysinternals.

Kris
LVL 4
krzywisAsked:
Who is Participating?
 
LauraEHunterMVPCommented:
The TS Profile Path is not an LDAP attribute, so you can't query AD for it.  (If you open ADSI Edit, you will see that the TerminalServicesProfilePath attribute does not exist within AD, even though you might logically think that it should.)

tscmd/scripting is the only way to go on this one, unfortunately.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.