Powershell to Re-join a machine to the domain

Here’s a pretty simple, quick script which quickly re-joins your machine to the domain. You run the script, the machine will reboot and you will then be able to login using your domain credentials again. $psmachine = Get-WmiObject Win32_ComputerSystem $psmachine.UnJoinDomainOrWorkGroup(“PASSWORD”, …

Read more