AD,It is so hard?

  • Thread starter Thread starter chen jin cai via DotNetMonster.com
  • Start date Start date
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.
 
OK, so you've posted your message three times, and you still haven't asked a
question.

I don't do a lot of programming against the active directory. Are you
wanting to find out how to add a user to a group in the active directory?
I haven't looked into System.DirectoryServices for much, but that's where
I'd start.

Perhaps if you asked a specific question...

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
chen jin cai via DotNetMonster.com said:
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
 
I have re-entried.
oh,sorry,I am poor in english,and so in my VB.NET.
Thank you for your reversion,
My purpose is :add ( or remove) a member(s) into a WorkGroup in my PC.
And it can browse only in hereinafter codes,But it is not work with
Active Diretory nymphlike,but you may also be successful to resolve this problem with Active Diretory .
Dim Computer
Dim Group
Dim User

Group = GetObject("WinNT://mis-cjc/accessform")

For Each User In Group.Members
Console.WriteLine(User.Name)
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top