Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to add a new user using DirectoryServices (User Logon Name)

How to add a new user using DirectoryServices (User Logon Name)

Scheduled Pinned Locked Moved C#
csharpvisual-studiocomwindows-adminhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    markaelkins
    wrote on last edited by
    #1

    I am new to C# and looking for a little help. I need to programmatically add users "User Logon Name" / "WinNT logon" to the windows 2000 Active Directory. I need to control/add other properties, but for now this is the main objective. I have successfully added pre-Windows 2000 users with DirectoryEntry & NetUserAdd, but can't find the syntax to add a WinNT logon name. I am using Visual Studio.Net 2003 Thank you, markaelkins@gmail.com Other properties that I need to control/add: (password, Full name, pre-Windows 2000 logon, User cannot change password, Password never expires, Description, Office)

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups