dsadd user not picking up the SAMID

Posted on 2007-08-09
Last Modified: 2010-05-18
I used the dsadd user tool to creat 280 user accounts. below is my string. All worked great but when i open the user account the user logon name is blank. the user name is listed in the pre windows 2000 section. I can logon using the account. Any ideas??
dsadd user 'CN=Helen Abele,OU=Students,DC=ad,DC=domainname,DC=org' -samid HAbele -fn Helen -ln Abele -display 'Helen Abele' -pwd pass123 -desc Student"

Question by:CADRE308
    LVL 19

    Accepted Solution

    Not sure what went wrong, but I've got a way you can fix it?

    You can use to make bulk changes in Active Directory - this will allow you to set everyone's user logon name at once, based on their pre-windows 2000 account name:

    In the ADModify GUI, once you've selected all the necessary user accounts - when you click Next it will bring up a standard user properties page - switch to the Account tab - tick the box next to UPN - make sure you select your domain name/suffix from the drop down to the right - and click the link labeled 'Legacy Account' above the UPN field. This should populate that field with %'sAMAccountName'%......oncle you click Go it will duplicate the pre-Windows 2000 logon name over to the User Logon Name field for each user.
    LVL 19

    Expert Comment

    And looking back at your string I think you needed an additional parameter to specify the user logon name


    The -samid switch only sets the pre-Windows 2000 logon name.

    Author Comment

    I just got a chance to try it and all worked great thanks for the assistance.
    LVL 19

    Expert Comment

    Good deal - glad it worked out.

    Featured Post

    Do email signature updates give you a headache?

    Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

    Join & Write a Comment

    The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    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 …

    729 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

    21 Experts available now in Live!

    Get 1:1 Help Now