Avatar of jashir101
jashir101

asked on 

Adding workgroup computer (Windows Server 2003 and Windows 2008) to domain using vbscript.

Hi All,

Could you please help me how to change workgroup to domain using vbscript for Windows Server 2003 and Windows Server 2008.
 
These are the below steps which we are manually adding workgroup computer to domain.

1. Right click My Computer and select Properties.

2. Then click Advanced system settings.

3. Go to Computer Name tab and click change.

4. Then select Domain and enter the Domain name.

5. Once the Domain is added, then click to More in the Computer Name tab and edit Primary DNS suffix of this computer.

6. Uncheck (Disable) Change primary DNS suffix when domain membership changes.

7. Reboot the system.

Could you please anyone to create a script for me as I need to manually add 76 servers

Any assistance could offer would be greatly appreciated.

Attached screenshot for examples.
 User generated image User generated image
Windows Server 2003Windows Server 2008

Avatar of undefined
Last Comment
jashir101
Avatar of Neil Russell
Neil Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

Dont need a script, use NETDOM.EXE

http://www.networknet.nl/apps/wp/archives/23
Avatar of pritamdutt
pritamdutt
Flag of India image

It is possible to use NETDOM utility to join to Domain using command line.

You can visit following link to learn more.

http://support.microsoft.com/kb/150493

Hope this helps
ASKER CERTIFIED SOLUTION
Avatar of pritamdutt
pritamdutt
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jashir101
jashir101

ASKER

This is not what im looking for. I have clearly mentioned the details in the title and question.

Can u please tell me what i have to give in OU and make a script it will prompt to ask which domain is to be added as we are using 3 domains.

Also i want to uncheck Change primary DNS suffix when domain membership changes

So please help me.
Avatar of Neil Russell
Neil Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

CLEARLY MENTIONED?

Where was the bit about 3 domain?

I find you manner rude and as far as I am concerened you can go find your own script.  Were to help and offer the best advice based on THE QUESTION DETAILS.

SOLUTION
Avatar of pritamdutt
pritamdutt
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of jashir101
jashir101

ASKER

I am not getting proper solution. Please help me on this.
Windows Server 2003
Windows Server 2003

Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo