• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 932
  • Last Modified:

Add a machine to the domain remotely

Hi,

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

Please advice.

THX
Shaath
0
bsharath
Asked:
bsharath
  • 4
  • 4
  • 2
  • +1
1 Solution
 
hbbw063Commented:
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
 
jburgaardCommented:
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
 
SunKnight0Commented:
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.

 
bsharathAuthor Commented:
The machine is in the same network/building and ip range.
0
 
SunKnight0Commented:
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
 
hbbw063Commented:
As I already explained ;)
0
 
bsharathAuthor Commented:
i need to do this remotely not through logging it on the machine.

There are commands that we can do this please advice.
0
 
hbbw063Commented:
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
 
bsharathAuthor Commented:
Can you phrase it for me

Joine psexec and Netdom and give me the command
0
 
hbbw063Commented:
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
 
bsharathAuthor Commented:
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

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now