How to read TermainsServices IADsTSUserEx Property from LDAP in C#? -


i have read following properties ad,

terminalservicesprofilepath terminalserviceshomedirectory terminalserviceshomedrive 

i've tried directoryentry , directorysearcher. not include properties.

i found example in vbscript , vc read them. failed make working in c#. missing tricky thing?

edit: have run on "windows server" make works? can read win xp?

i don't remember exactly, it's this:

//user directoryentry iadstsuserex adsiuser = (iadstsuserex)user.nativeobject;  

then can terminalservices properties want via adsiuser.

from experience you're better off developing on windows server access ad due libraries use. you'll make above work, :)


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -