C
chen jin cai via DotNetMonster.com
Dear Sir:
I attempt 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 localgroup 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.
Now,I want to add or remove.
Can you help me?
Thank you!
Best wishes!
2005-1-13
I attempt 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 localgroup 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.
Now,I want to add or remove.
Can you help me?
Thank you!
Best wishes!
2005-1-13