LDAP query for Terminal Services Profile Path

Posted on 2007-07-28
Last Modified: 2013-12-24
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
(&(objectclass=user)(ProfilePath=*<STRING_1>*)) works fine
(&(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.

Question by:krzywis
    1 Comment
    LVL 30

    Accepted Solution

    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.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This article describes some very basic things about SQL Server filegroups.
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now