NETDOM REMOVE machine /Domain:domain [/UserD:user]
[/PasswordD:[password | *]]
[UserO:user] [/PasswordO:[password | *]]
[/REBoot[:Time in seconds]]
NOTA: “UserD” y “PasswordD”, es el usuario y password de dominio con credenciales para subir y bajar de Dominio una PC. “UserO” y “PasswordO”, es el usuario Administrador local.
NETDOM REMOVE Removes a workstation or server from the domain.
machine is the name of the computer to be removed
/Domain Specifies 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. A * means
to 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. A * means
to prompt for the password
/REBoot Specifies that the machine should be shutdown and automatically
rebooted after the Remove has completed. The number of seconds
before automatic shutdown can also be provided. Default is 30 seconds