Rejoin a Computer to domain without Restart using powershell



There are three methods to rejoin the computer to domain without restart

Method 1:
Test-ComputerSecureChannel -Repair -Credential (Get-Credential)


When the above command is executed it will prompt for username and password and enter the domain credentials and result should show as true then the machine is re-added to domain.


Method 2:
netdom resetpwd /Server:DC /UserD:DomainAdmin /PasswordD:Password

The above command should be executed in the command prompt under administrator prompt.


Method 3:

Reset-ComputerMachinePassword -Credential (Get-Credential)


When the above command is executed it will prompt for username and password and enter the domain credentials and result should show as true then the machine is re-added to domain.


Stay Tuned and connect with me @ Click to connect

Popular posts from this blog

Running CLI Commands in ESXi using plink software

Changing the path policy of the SCSI lun device using Powercli in Vmware Vsphere Environment