How to add a desktop to a Active Directory and use it to able allow with ad users?

In POC stage about SLED in our laptops we and Suse team made it by a manual way, using Yast, how can I automatize it to apply by salt as a exemple? Automatize the processo to add a desktop node in AD.