I am in the process of writing a script that creates a VM based on param input. The VHD that is attached is an un-syspred image. I need to get the vm into Active Directory.
One option would be to sysprep the vhd.
Is there a way to automate the domain join via powershell remotely?