Saturday, January 16, 2010

Home /AltDefaultDomainName /CachePrimaryDomain /Change Default Domain Name /DefaultDomainName /Log on to /script / Change Default Domain Name (Log on to) from an Input File – Script

Change Default Domain Name (Log on to) from an Input File – Script

This batch file can be used to change the default domain name (Log on to).  This script is useful when performing computer migrations.  The input for this script is a text file which contains all computer names. 

image

If you change the DefaultDomainName and AltDefaultDomainName values, the Log on to filed will populate with this new value.  But I have seen many failed instances.   The workaround for this issue is to populate the CachePrimaryDomain registry string with your new Domain name. 

image

Usage: Create a text file called computers.txt with all your computer names and update the KERALA domain name in the script with your domain name.

Download: You can download the script from this location

SS

Santhosh Sivarajan

Microsoft MVP · Identity & Cybersecurity Architect

Santhosh has 30+ years of hands-on enterprise experience in Identity and Access Management, Microsoft Entra ID, Active Directory, Microsoft 365 and Zero Trust architecture. He is the author of two books on Windows Server and security, and leads consulting, assessments and training at SAG Business Group.

10 comments:

Hey Santosh-
Thanks for taking the the time to share and help out fellow IT professionals.
This looks to be very simple and easy to follow.
I have always found "migrating comp account" to be really a somewhat avoided subject. But you addressed it!
Thanks and I will give this a try.
Regards.
Shah Murad

Thanks for the feedback!

This comment has been removed by the author.

HI,

I just run the command but didn't change the WinXP to new Domain?

AS

Please post your input file and script here.

>>> From where do i run this Bat file? Source domain or target domain dc?

Doesn’t really matter. You can run it from source or target as long as you can access the PCs and both domains. Since you are migrating from Source to Target, I would say run it from the target side.

can this be added via Group Policy?

Sure. You can update a registry setting using GPO. But in this particular scenario, we need to update the registry right after the migration. Domain membership is changing from Source Domain to Target Domain.

Does this work for xp, vista & win7? Thanks Santhosh your guidance has helped a lot.

The effectiveness of IEEE Project Domains depends very much on the situation in which they are applied. In order to further improve IEEE Final Year

Project Domains practices we need to explicitly describe and utilise our knowledge about software domains of software engineering Final Year Project

Domains for CSE
technologies. This paper suggests a modelling formalism for supporting systematic reuse of software engineering technologies

during planning of software projects and improvement programmes in Final Year Projects for CSE.



Software management seeks for decision support to identify technologies like JavaScript that meet best the goals and characteristics of a software

project or improvement programme. JavaScript Training in

Chennai
Accessible experiences and repositories that effectively guide that technology selection are still lacking.



Aim of technology domain analysis is to describe the class of context situations (e.g., kinds of JavaScript software projects) in which a software

engineering technology JavaScript Training in Chennai can be applied successfully



The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing,

and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

Post a Comment

Popular Posts
Workstation Trust Relationship Issue Issue: You receive the following error message, when you try to login to the domain.  The security database on the server does not have ... ADMT Service Account - Permission and Configuration The ADMT service account needs to have proper permission in source and target domains.  You don’t need to use 2 separate accounts.  You can ... My First Peek into Microsoft Exchange 2010 By Santhosh Sivarajan Before I really dive into Exchange 2010, I thought I would install and play with it first. I took some screen shots and notes during the ins... ObjectSID and Active Directory What is an objectSID in Active Directory? When a new object is created in Active Directory, Domain Controller assigns a unique value used ... AD Group Report - List Group Members in Active Directory–PowerShell Script Updated Script - http://portal.sivarajan.com/2011/10/search-ad-collect-local-admin-group.html Script #1 This script... Add Users to a Group–PowerShell Script Purpose – Add users to a group from an input file – PowerShell V2 Script.  Input file – Input file (Users.csv) contains samAccountName in... User Account Migration and Merging – Part I (ADMT) Part I - User Account Migration and Merging Using ADMT Part II - User Account Migration and Merging Using QMM pre-creating user account ... User Account Migration and Merging – Part II (Quest Migration Manager) Part I - User Account Migration and Merging Using ADMT Part II - User Account Migration and Merging Using QMM Pre-creating user account in... Delete Stale or Inactive Computer Accounts from Active Directory Here is an easy way to identify and delete inactive or stale computers in an Active Directory environment.  Using the dsquery command you c... Converting PowerShell (PS1) to EXE / Standalone Application As we know, there many applications available to convert a PowerShell file to a standalone executable file.  Based on my experience, PowerSh...