Add A Computer To An Active Directory Domain With Powershell
This PowerShell snippet above connects remotely to the computer NAMEHERE, attempts to join it to the domain domain.here and then afterward restarts it. No more logging on computers and clicking around.
This method not only speeds up joining a domain on a single machine but also can easily extend to multiple devices as well if the computer names are stored somewhere else, like a text file.
Read the full article at 4SysOps.
Latest posts by Adam Bertram (see all)
- Building HTML Reports In Powershell With Convertto-Html - May 25, 2017
- File Cannot Be Accessed Fix With Handle.exe - May 24, 2017
- Powershell Streams: Write-Host, Write-Output, Write-Verbose, Write-Error - May 23, 2017