The first thing we often do after creating a new Windows VM on Google Cloud is join the VM to Active Directory. Typically, this entails the following steps: Generate Windows credentials Log on by using RDP Initiate the domain join Log on again with a domain user and delete the local admin account created in (1) This process is tedious. And if we forget to perform step (4), we’re also leaving an enabled local administrator account behind. One way to make domain joining less painful is to aut...