Re: Csharp code to add an AD user to an AD group?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On May 19, 9:52 am, "Richard Mueller [MVP]" <rlmueller-
nos...@xxxxxxxxxxxxxxxxxxxx> wrote:

cn=TestGroup,ou=Sales,ou=West,dc=MyDomain,dc=com

--
Richard Mueller
MVP Directory Services
Hilltop Lab -http://www.rlmueller.net
--

Sorry for the other post, How do I get the OU of the server? I thought
the OU was the computer name. I'm trying

string GroupName = "LDAP://
CN=JCP,OU=MYSERVER,DC=MYDOMAIN,DC=MYSUBDOMAIN";
string userName =
"CN=johndoe,OU=MYSERVER,DC=MYDOMAIN,DC=MYSUBDOMAIN";

I'm on a client that's a different domain as I try this, but I am able
to access MYSERVER by dns anems.
.



Relevant Pages

  • Re: dsquery -limit command not working
    ... command worked. ... Richard Mueller ... MVP Directory Services ... Hilltop Lab - http://www.rlmueller.net ...
    (microsoft.public.windows.server.active_directory)
  • Re: Need vbs script to add computer in the domaine (OU )
    ... Richard Mueller ... MVP Directory Services ... Hilltop Lab - http://www.rlmueller.net ... Const JOIN_DOMAIN = 1 ...
    (microsoft.public.windows.server.scripting)
  • Re: dsquery -limit command not working
    ... Richard Mueller ... MVP Directory Services ... Hilltop Lab - http://www.rlmueller.net ... I cannot duplicate your problem. ...
    (microsoft.public.windows.server.active_directory)
  • Re: dsquery -limit command not working
    ... Richard Mueller ... MVP Directory Services ... Hilltop Lab - http://www.rlmueller.net ... I cannot duplicate your problem. ...
    (microsoft.public.windows.server.active_directory)
  • Re: group
    ... why it command to use domain local group to security resource(file server, ... Richard Mueller ... MVP Directory Services ... Hilltop Lab - http://www.rlmueller.net ...
    (microsoft.public.windows.server.active_directory)