I am able to obtain and set various notifications for the environment under Windows Server 2003 in Active Directory for a user Would like to be and session tab through VB Net application I'm familiar with System.DirectoryService but I can not find the right property for these special tabs. For example, I want to check "Connect Printer in Logon" or set "Limit for Passive Session".
I have "ms-TS-Connect-Printer-Drives attribute" and other features but this has only been applied to server 2008. There should be another way for the old version.
i have found the answer after several researches.
There are some information that you can not get through Windows Server 2003 through Directory Services, especially under Session, Environment, Terminal Service etc. DLL that can do for you: TSUSEREX.dll was found in Windows / System32.
Adding the context of that library to that visual studio project, here is an example of what you want:
Direct a directory entry to that user. , At which you want to work.
ADSASUserX = CTEP (DIARNTUISRNETIVE Object, ADSSUserX) OUUSER Max idle time = 10 oUser.ConnectClientPrintersAtLog = 1 This maximum passive connection will be set to 10 minutes and the printer will be automatically connected.
Comments
Post a Comment