Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5325
  • Last Modified:

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
0
krzywis
Asked:
krzywis
1 Solution
 
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

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now