NETDOM COMPUTERNAME machine /UserO:user /PasswordO:[password | /UserD:user /PasswordD:[password | /SecurePasswordPrompt /Add: ...

NETDOM COMPUTERNAME machine [/UserO:user] [/PasswordO:[password | *]]
           [/UserD:user] [/PasswordD:[password | *]] [/SecurePasswordPrompt]
           /Add: | /Remove: 
           | /MakePrimary: |
           /Enumerate[:{AlternateNames | PrimaryName | AllNames}] |
           /Verify

NETDOM COMPUTERNAME manages the primary and alternate names for a computer.
This command can safely rename a domain controller or a server.

machine         The name of the computer whose names are to be managed.

/UserO          User account used to make the connection with the machine to be
                managed

/PasswordO      Password of the user account specified By /UserO.  A * means
                to prompt for the password

/UserD          User account used to make the connection with the domain of
                the machine to be managed

/PasswordD      Password of the user account specified By /UserD.  A * means
                to prompt for the password

/Add            Specifies that a new alternate name should be added. The new 
                name must be a fully qualified DNS name(FQDN - computer name 
                followed by primary DNS suffix, such as comp1.example.com.).

/REMove         Specifies that an existing alternate name should be removed. 
                The name being removed must be a fully qualified DNS 
                name (FQDN - computer name followed by primary DNS suffix,
                such as comp1.example.com.).

/MakePrimary    Specifies that an existing alternate name should be made into
                the primary name. The name being made primary must be a fully 
                qualified DNS name (FQDN - computer name followed by primary 
                DNS suffix, such as comp1.example.com.).

/ENUMerate      Lists the specified names. It defaults to AllNames.

/Verify         Checks if there is a DNS A record and an SPN for each computer
                name. 

/SecurePasswordPrompt 
                Use secure credentials popup to specify credentials. This
                option should be used when smartcard credentials need to be
                specified. This option is only in effect when the password 
                value is supplied as *
English
English (United States)
Deutsch (Deutschland)
German (Germany)
Español (España)
Spanish (Spain)
italiano
Italian
日本語
Japanese
한국어
Korean
Português
Portuguese
Русский
Russian