netdom computer computername /add:secondcomputername

I could not get this to work on a windows 10 pro computer from the domain controller but it did work for a file server and the primary domain controller

Do this to remove the second name:

netdom computer computername /remove:secondcomputername