Link to home
Start Free TrialLog in
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
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
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

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am not getting proper solution. Please help me on this.