|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
EnableRemoteControl in vb.netI am making a program for our automation and I need to change EnableRemoteControl property via vb.net code is below Dim obDirEntry = New DirectoryEntry("WinNT://" + Environment.UserDomainName) Dim entries As DirectoryEntries = obDirEntry.Children Dim obUser As DirectoryEntry = entries.Add(user_name, "User") obUser.Properties("FullName").Add("Added by Digiwu") ' isim soyisim obUser.Properties("Description").Add(user_domain) 'domain ismi obUser.Properties("UserFlags").Add(ADS_UF_DONT_EXPIRE_PASSWD) obUser.Properties("HomeDirectory").Add(XML_Read("base", "location/sites") + "\" + user_domain) obUser.Properties("EnableRemoteControl").Add(False) obUser.Invoke("SetPassword", user_pass) obUser.CommitChanges() bu this code is not working it gives error in enable remote control property is there any idea? thanks |
|||||||||||||||||||||||