Hello, I'm trying to use IADsTSUserEx to modify a few TS properties of an AD user. I can modify the user's other properties easily using an DirectoryEntry object. However, it looks like you can't use that object to modify TS properties (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/ad/user_object_user_interface_mapping.asp
- at the bottom).
It pointed me to this page:
I tried the sample code that they provide:
Dim DSO As Object
Dim usr As System.DirectoryServices.D
DSO = GetObject("LDAP:")
usr = DSO.OpenDSObject("LDAP://C
rectory = "c:\"
I get an error: 'TerminalServicesHomeDirec
tory' is not a member of 'System.DirectoryServices.
Is there maybe a reference that I need to add? I find it odd that they do not reference IADsTSUserEx at all in the sample code. Any help will be greatly appreciated, this is quite urgent!