Please use this script to monitor the trust connection between the domain and the computers.
This script works in windows 8, windows 8.1, windows 10.
Username - Enter the username.
Password - Enter the password.
Username - john
Password - admin@123
Please refer this wikiguide to use custom monitoring script: