Solved

Active Directory - dsmod

Posted on 2006-06-23
7
2,831 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
0
 
LVL 30

Accepted Solution

by:
ded9 earned 250 total points
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
Synchronize a new Active Directory domain with an existing Office 365 tenant
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 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

12 Experts available now in Live!

Get 1:1 Help Now