Use PowerShell to join a Windows Server Core to Active Directory (one-liners)

Last night I was trying to quickly set up several Windows Server 1709 virtual guests for Lab purposes and the Server Configuration Tool is time-consuming! For this reason, I used PowerShell Direct from the Hypervisor to connect to these guests and fire up some scripts to quickly configure my environment. One of the tasks inside my scripts was a simple but time-consuming task if you use the classic method, domain join operation.

The following PowerShell cmdlets will do the trick.

Thanks for reading!

George Markou

My Name is George Markou, IT Pro, Geek and Fancy Gadgets enthusiast. I am focused on Virtualization and Cloud Technologies.

%d bloggers like this: