I have a c# .NET 3.5 application which retrieves various user properties. Out of them 'TerminalServicesHomeDirectory', 'TerminalServicesHomeDrive' are 2 properties I need to fetch. On the DirectorySearcher, if I add these 2 propertiesToLoad property and do a FindAll(), the SearchResult object does not contain these properties.
I will have to do SearchResult.GetDirectoryEntry() and from the obtained directory entry, when I do InvokeGet, I get the values.
My question is, is there a way I can get value for these properties without having to create directory entries for each SearchResult ?
Is there anything I am missing? Thanks!