PC Review


Reply
Thread Tools Rate Thread

how to disable checkbox 'Enable remote control' in the remote control tab in a user property panel

 
 
lolo
Guest
Posts: n/a
 
      31st Aug 2006
I would like to create a local user without permit remote connection,
any1 got an idea ?


Here is a sample which creates my user under w2003 srv:


Dim AD As System.DirectoryServices.DirectoryEntry = New
System.DirectoryServices.DirectoryEntry("WinNT://" +
Environment.MachineName + ",computer")
Dim NewUser As System.DirectoryServices.DirectoryEntry

If LocalUserExists(username) Then
NewUser = AD.Children.Find(username)
Else
NewUser = AD.Children.Add(username, "user")
NewUser.Invoke("SetPassword", New Object() {password})
NewUser.Invoke("Put", New Object() {"Description",
description})
NewUser.CommitChanges()
End If
NewUser.CommitChanges()


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Assist...Cannot find checkbox to enable expert machine to take control JB Windows Vista General Discussion 0 6th Nov 2009 10:55 PM
Enable Property of Multipage Control Pages = CheckBox.Value RyanH Microsoft Excel Programming 2 13th May 2008 02:10 PM
How to binding data with enable/disable the textbox or control visible property according to the some field values? ABC Microsoft Dot NET Framework Forms 0 17th Jul 2006 06:13 PM
enable property of checkbox control vikram Microsoft ASP .NET 1 13th Apr 2005 04:44 PM
enable/disable modem firewall via control panel dan Windows XP Security 0 23rd Sep 2004 09:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:05 PM.