Solved

Active Directory - dsmod

Posted on 2006-06-23
7
2,907 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
[X]
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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

749 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