• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1769
  • Last Modified:

dsadd user not picking up the SAMID

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"

0
CADRE308
Asked:
CADRE308
  • 3
1 Solution
 
aissimCommented:
Not sure what went wrong, but I've got a way you can fix it?

You can use ADModify.net 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: http://www.codeplex.com/admodify/Release/ProjectReleases.aspx?ReleaseId=6065

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.
0
 
aissimCommented:
And looking back at your string I think you needed an additional parameter to specify the user logon name

"-upn HAbele@domainname.org"

The -samid switch only sets the pre-Windows 2000 logon name.
0
 
CADRE308Author Commented:
I just got a chance to try it and all worked great thanks for the assistance.
0
 
aissimCommented:
Good deal - glad it worked out.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now