C
chen jin cai via DotNetMonster.com
I supposed to add member(s) to or delete member(s) from one new group created by me ,which is similar to Administrators and Power Users in global group which in my computer by VB.NET,there are my codes
to list the member(s) from one group in my computer,as follows:
Dim Group
Dim User
Group = GetObject("WinNT://mis-cjc/accessform")
For Each User In Group.Members
Console.WriteLine(User.Name)
Next
"mis-cjc" is my computer' name ,and "accessform" is a new group created by me.It can browse only.
Now,I want to add or remove.
to list the member(s) from one group in my computer,as follows:
Dim Group
Dim User
Group = GetObject("WinNT://mis-cjc/accessform")
For Each User In Group.Members
Console.WriteLine(User.Name)
Next
"mis-cjc" is my computer' name ,and "accessform" is a new group created by me.It can browse only.
Now,I want to add or remove.