Configures trust relationship refresh and validation properties
strComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & _strComputer & "\root\MicrosoftActiveDirectory")Set colTrustList = objWMIService.ExecQuery _("Select * from Microsoft_TrustProvider")For Each objTrust in colTrustListobjTrust.TrustListLifetime = 25objTrust.TrustStatusLifetime = 10objTrust.TrustCheckLevel = 1objTrust.Put_Next
This is a VB Script, this can be used by saving the file in .vbs file