?
Solved

Adding a computer to a Windows 2003 domain remotely

Posted on 2006-07-22
1
Medium Priority
?
489 Views
Last Modified: 2008-02-01
Maybe this is a weird question but I have a Windows 2003 domain controller that is on a client site 8 hours away. They have order 15 new computers that were shipped directly to us. Our only access to their network is via RDP. I need to prep these computers so that the users do not have to join them to the domain themselves. We already have all the applications setup to install at logon based on GP's on OU's. How can I prep these computers to automatically join the domain or have them already joined before sending them to the client? I just want them to plug them in and start working.
0
Comment
Question by:dsechrist
1 Comment
 
LVL 85

Accepted Solution

by:
oBdA earned 1500 total points
ID: 17160604
If you don't have access to their domain via VPN, there's no way to add them at your place.
The computers need to be joined to the domain by a user that is a local administrator and knows the credentials of a domain administrator (don't rely on the 10 machines a regular user can add!).
So you could add a batch script on the desktop, so that a domain administrator can log on and then only has to execute the script. You can use netdom.exe in this script to join the machine (it's included in the Support Tools on the install CD).

@echo off
REM *** Name of the domain administrator used to join the machine to the domain:
set JoinAdmin=Administrator
REM *** Name of the AD domain:
set JoinDomain=fqdn.of.the.ad.domain
REM *** Timeout before reboot in seconds:
set TimeOut=30
REM *** Optional: DN of the OU where the machine account should be created:
REM *** Format: ou=Some OU,ou=Some Top Level OU,dc=domain,dc=local
set JoinOU=

if not "%JoinOU%"=="" set JoinOU=/OU:"%JoinOU%"
REM *** Ask for the password, join the machine, reboot.
netdom.exe join %ComputerName% /domain:%JoinDomain% %JoinOU% /UserD:"%JoinAdmin%" /PasswordD:* /Reboot:%TimeOut%
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 10 hours left to enroll

830 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