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
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.