Msktutil is a program for interoperability with Active Directory that can:
Create a computer account in Active Directory
Create a system Kerberos keytab
Add and remove principals to and from that keytab
Change the computer account's password
WWW: https://fuhm.net/software/msktutil/