Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Active Directory - dsmod

Posted on 2006-06-23
7
2,887 Views
Last Modified: 2011-10-03
Hello,

I've inherited a Windows 2k3 AD network. The bozo before me gave all the users uppercase logon names. I know it's not case-sensitive and it doesn't really matter but I want to change then to lowercase. I've used dsmod to successfully change them in bulk but I can't find a dsmod switch to change the 'pre-Windows 2000 logon name' which is still in uppercase. Does anyone know?

Ciderspine.
0
Comment
Question by:Ciderspine
  • 3
  • 2
7 Comments
 

Author Comment

by:Ciderspine
ID: 16967147
I think what I'm looking for is a way to change the users samid using the ds tools. Dsmod appears only to change a groups samid. Can I change a users samid with dsmove?
0
 
LVL 30

Expert Comment

by:ded9
ID: 16967270
okay here is the way

 You can use the Dsmove command with the -newname switch to rename Active Directory (AD) objects. For example, to change user savillj to user johnsavill, type


C:\>dsmove CN=savillj,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com
   -newname johnsavill

The machine will return the following result:


dsmove succeeded:CN=savillj,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com



Reps
points
0
 

Author Comment

by:Ciderspine
ID: 16967653
Hi,

Thanks, but that only changes the RDN. I want to change the sAMAccountName. I don't think it can be done with any of the ds tools.
0
 
LVL 30

Expert Comment

by:ded9
ID: 16968440
0
 
LVL 30

Accepted Solution

by:
ded9 earned 250 total points
ID: 16968545
Here is the perfect solution


Check out this command


If you want to change the sAMAccountName, use dsmod after the dsmove.

dsmod group distinguishedName -samid NewsAMAccountName

Reps
points
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problems with VOIP phones and Comcast Business internet connection 27 66
FTP Transfer Speeds ... 6 53
Domian name change 12 23
Azure Expertise required 1 26
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

792 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