Posted on 2007-10-17
Last Modified: 2009-12-01
When using DSADD, I've been unsuccessful specifying the Logon Name.  Ive had no trouble specifying Display Name, Profile, Email Address..., but no matter what I try, Logon Name on the Account tab of the Users Properties in ADUC always ends up blank.  Suggestions?
Question by:jdana
    LVL 9

    Expert Comment

    It's difficult to help if you don't show us what you've already done, what the error was and what you intended to do ... can you provide more information.

    Author Comment

    Sure.  Here's a simple example:

    dsadd user "cn=Test User 4,cn=users,dc=mydomain,dc=com" -pwd Password -disabled no

    The dsadd is successful. I open properties for Test User 3 in ADUC, go to the Account tab, the User Logon Name is blank.  What switch do I need to add in the command to include the User Logon Name?
    LVL 30

    Accepted Solution

    -samid "test4" will create a samAccountName of "test4".

    - upn "" will create a UPN of "".

    dsadd user /? will show you all of the available attributes that you can set at time of creation, including firstname, lastname, display name, description, etc.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    My last post dealt with using group policy preferences to set file associations, a very handy usage for a GPP. Today I am going to share another cool GPP trick, this may be a specific scenario but I run into these situations frequently in my activit…
    [b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
    This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now