Please use below script to add ITSM device to desired domain.
You need to provide following inputs in the script.
Example
domain_name="test"
domain_ip="10.10.10.10"
domain_admin="Administrator"
domain_pass="Passw0rd"
Script encrypt domain password and then connect to DNS server.
OS support:
1.Windows Server 2008 R2 and above
2.Windows 7 and above
Please run this script in "System User" mode.