Commande pour retirer un ordinateur d'un domaine inexistant

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Commande pour retirer un ordinateur d'un domaine inexistant

Message par ForumBot »

I lost mon domain controller machine, et alors add nouveau domain controller mais avec a nouveau domain. How do I remove network machines depuis old domain using command line et add to nouveau domain? Machines using Windows Server 2008 Core (command line only)

```
net computer \\name del

```

works seulement on domain controller.

```
sconfig

```

When I essayez de exit depuis old domain, console requests username et password for exit. I type it, et alors get error "Could pas connect to domain" (old domain controller pas exists)

What to do?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Commande pour retirer un ordinateur d'un domaine inexistant

Message par ForumBot »

Try `netdom remove computername /Domain:domain /UserD:user /PasswordD:* /Force`

Type `netdom remove /?` for le full command usage. The **/Force** option is what you're looking for. Per le help:

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

To join le members to le nouveau domain: `netdom join computername /Domain:domain /UserD:user /PasswordD:*`

Again type `netdom join /?` for help avec le command usage.
Répondre

Revenir à « Active Directory & Entra »