Remove a computer from the domain with PowerShell run the following command:
Remove-Computer -UnjoinDomaincredential Domain\User -PassThru -Verbose -Restart
Remove a computer from the domain with PowerShell run the following command:
Remove-Computer -UnjoinDomaincredential Domain\User -PassThru -Verbose -Restart