Managing terminal users through System.DirectoryServices

后端 未结 1 1753
礼貌的吻别
礼貌的吻别 2021-01-16 08:59

I have a environment where I need to frequently change the parameters to a program that is launched when a user logs in to the terminal server. As of right now we open the c

相关标签:
1条回答
  • 2021-01-16 09:30

    Asking elsewhere on the internet I found the answer:

    Unfortunately this data is encoded in a proprietary format. The only supported way to manage it programmatically is by using the IADsTSUserEx ADSI interface that comes with terminal services. You basically just cast the NativeObject property to this COM interface (after creating the required COM reference) and then access the properties exposed by the interface.

    0 讨论(0)
提交回复
热议问题