Monday, September 21, 2009

NetDOM

Use Netdom to determine/change which domain controller is the default for a particular computer.


1. What DC is BOX2468 currently using? (And BOX2468 can be yours or remote.)


netdom verify Box2468 /domain:DOMAINNAME.com

The secure channel from BOX2468 to the domain PNMS.COM has been verified. The connection

is with the machine \\COMPUTER1.DOMAINNAME.COM.


2. Let’s change BOX2468 to use COMPUTER2, and BOX2468 can be remote or local.

netdom reset Box2468 /domain:DOMAINNAME.COM /SERVER:COMPUTER2

The secure channel from BOX2468 to the domain PNMS.COM has been reset. The connection is

with the machine \\COMPUTER2.DOMAINNAME.COM.


(If netdom is not recognized in your command prompt, you have not installed the Server 2003 tools. So, for immediate netdom function, go to http://www.microsoft.com/downloads/details.aspx?FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en&Hash=Var2j3YnbvYQfD12sufzrOs1WEfXR0XYuRK4PMZVR8a85wlkmcQdTjU%2bLXrrOfBUH5UYEsoWd%2bi1jI4CPjohtA%3d%3d and copy the netdom.exe that you find there into your system32 subfolder.)