NETDOM Remove (Windows Server 2003/2008/R2/2012 + Windows 7/8)

Remove a workstation or server from the domain. In Windows 10 use the Remove-Computer PowerShell cmdlet instead.

Syntax
      NETDOM REMOVE machine [/Domain:domain]
         [/UserD:user] [/PasswordD:[password | *]]
            [/UserO:user] [/PasswordO:[password | *]]
               [/REBoot[:Time_in_seconds]] [/Force]
                  [/SecurePasswordPrompt]

Key:

   machine     The name of the computer to be removed

   /Domain     The domain in which to remove the machine 

   /UserD      User account used to make the connection with the Domain
               specified by the /Domain argument

   /PasswordD  Password of the user account specified By /UserD.
               Specifying a * will prompt for the password.

   /UserO      User account used to make the connection with the Machine to be
               removed.

   /PasswordO  Password of the user account specified By /UserO.
               Specifying a * will prompt for the password.

   /Force      Force the unjoin of the machine from the domain even if the 
               domain is not found or does not contain the matching computer 
               object.

   /REBoot     Shutdown and automatically reboot the machine after the remove
               has completed.  The number of seconds before automatic shutdown
               can also be provided.  Default = 30 seconds

   /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 *

Netdom options can be abbreviated to just the UPPER case letters, e.g. /PasswordD can be supplied as just /PD

“No amount of time can erase the memory of a good cat, and no amount of masking tape can ever totally remove his fur from your couch” ~ Leo F. Buscaglia

Related:

NETDOM ADD - Add a workstation or server account to the domain.


 
Copyright © SS64.com 1999-2019
Some rights reserved