?
Solved

Add a machine to the domain remotely

Posted on 2007-04-11
11
Medium Priority
?
920 Views
Last Modified: 2008-06-01
Hi,

How can we add and remove a machine from the domain remotely.

Please advice.

THX
Shaath
0
Comment
Question by:bsharath
[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
  • 4
  • 4
  • 2
  • +1
11 Comments
 
LVL 3

Expert Comment

by:hbbw063
ID: 18888817
Log into your remote machine using remote desktop connection assuming it is a XP box or use any remote control third party application like VNC or Remote Administrator. Than simply add your machine to domain providing credentials with necessary rights to add workstation to domain.
0
 
LVL 17

Expert Comment

by:jburgaard
ID: 18888827
You could setup a remote desktop connection to your domaincontroller .
or you could install a adminpack on a xp workstation:
http://www.petri.co.il/administer_windows_2000_2003_domain_from_windows_xp.htm.
Afterwards goto administrative tools-> active directory Users and computers.
Here you can manage the AD part: preparing a machine to be added to AD or deleting it.
On the machine to be added, I do not think you have any remote options while
taking it from workgroup to domain.
0
 
LVL 1

Expert Comment

by:SunKnight0
ID: 18889074
Is the workstation remote or the server? Or both? Is the workstation on the same network as the server, or does it connect via VPN?

Assuming you have access to the workstation and admin rights to the domain:

a. Make sure any remote control to the workstation is IP based and not name based
b. Attach to the domain/detach from the domain as you would if it was local

If the workstation is not local to the server, you will need to first create a VPN connection before attaching to the domain. You will need to make sure Routing and Remote access is active on the server and accepting VPN connections and that VPN can pass through any routers/firewalls and get properly forwarded tro the server.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 11

Author Comment

by:bsharath
ID: 18889092
The machine is in the same network/building and ip range.
0
 
LVL 1

Expert Comment

by:SunKnight0
ID: 18889132
Then there is no need for VPN. All you have to do is activate the remote desktop connection on the workstation, connect to it by IP, attach it to the domain, reboot.
0
 
LVL 3

Expert Comment

by:hbbw063
ID: 18889446
As I already explained ;)
0
 
LVL 11

Author Comment

by:bsharath
ID: 18889825
i need to do this remotely not through logging it on the machine.

There are commands that we can do this please advice.
0
 
LVL 3

Expert Comment

by:hbbw063
ID: 18890078
Well, you can use NETDOM command (availble from resource kit), however this commands needs to be executed on the local computer, for more details on how to use this command see : http://support.microsoft.com/kb/150493/EN-US/

To execute this command remotely, you can use "psexec" Sysinternals utility which allows to execute commands remotely, for more details see http://www.microsoft.com/technet/sysinternals/utilities/psexec.mspx

Hope this helps.
0
 
LVL 11

Author Comment

by:bsharath
ID: 18890109
Can you phrase it for me

Joine psexec and Netdom and give me the command
0
 
LVL 3

Accepted Solution

by:
hbbw063 earned 1500 total points
ID: 18890796
OK, it should be something like that:

PSEXEC \\MYCOMPUTER "NETDOM /Domain:MYDOMAIN /user:adminuser /password:apassword MEMBER
      MYCOMPUTER /JOINDOMAIN" -u username -p password

MYCOMPUTER is the computer you want to add to domain
Note that username and password are used to connect to the machine and adminuser and apassword are used to connect to domain
0
 
LVL 11

Author Comment

by:bsharath
ID: 18895093
This command gives this error
The filename, directory name, or volume label syntax is incorrect.

MEMBER should it be the same or i need to change it.?
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

801 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