Tuesday, April 23, 2013

How to test and reset the secure channel between a computer and a domain

We can use the domain secure channel utility nltest.exe as follows:
To test the secure channel use the following command:
nltest /server:<ComputerName> /sc_query:<DomainName>
To reset the secure channel use the following command:
nltest /server:<ComputerName> /sc_reset:<DomainName>
Another option is to use the netdom command to reset the secure channel using the command:
netdom reset <ComputerName> /Domain <DomainName> /UserO <UserUPN> /PasswordO * 
For more information read the following articles from Microsoft KB:
http://support.microsoft.com/kb/158148
http://support.microsoft.com/kb/216393