Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


NETDOM question - join machine to OU

Posted on 2005-04-08
Medium Priority
Last Modified: 2012-05-05

I'm attempting to join a PC to a domain and OU, but I;m not having any luck:

netdom.exe add %computername% /Domain:AD /UserD:MYID /PasswordD:********* OU/:ou=Computers,ou=My Branch,ou=Unit,dc=ad,dc=company,dc=com

I keep on getting the error:
 The parameter OU/:ou=Computers,ou=My was unexpected.
 The parameter is incorrect.

If I use quotes around the OU name, I get:
 The parameter OU/:ou=Computers,ou=My Branch,ou=Unit,dc=AD,dc=Company,
c=Com was unexpected.
 The parameter is incorrect.

How can I get this to work???
Question by:Marketing_Insists

Author Comment

ID: 13740934
any commandline method would be great.  VB or whatever
LVL 86

Accepted Solution

oBdA earned 2000 total points
ID: 13741099
Just in case, as it's appearing three times: it should be /ou:"some OU", not OU/:.
netdom.exe add %computername% /Domain:AD /UserD:MYID /PasswordD:********* /OU:"ou=Computers,ou=My Branch,ou=Unit,dc=ad,dc=company,dc=com"
Note that if you specify a OU, you have to run the netdom command on the DC itself, you can't run it from a client.
Maybe of help:
Automating the Creation of Computer Accounts
LVL 27

Expert Comment

ID: 13741761
What happens when you use \ instead of /   ?
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.


Expert Comment

ID: 13744117
If the LDAP connector in netdom.exe uses SQL commands you might have to use single quotes ‘ instead of the ordinary double quotes “

Author Comment

ID: 13827299
got errors when I used \ instead of /  

Bummer if I can only run this command on a DC, (no login rights)  Maybe I can get.
LVL 86

Expert Comment

ID: 13827417
What you could try instead (assuming you have the permissions to do so) is to create the account in the standard OU, then use dsmove.exe (part of the W2k3 adminpak.msi) to move it into the target OU.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

580 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