Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Occasionally, a computer account can lose its secure channel to a domain controller.

How can secure channel be reset without rebooting the computer?

The computer in question is a clustered SQL Server running Server 2008 R2 in a 2008 R2 Functional Level Active Directory domain and forest.

share|improve this question
up vote 3 down vote accepted

I've had some instances where a machine will decide to use an off-site domain controller (elsewhere on our WAN) as it's logon server and map offsite network drives instead of local ones; that can be resolved by resetting the secure channel directly:

nltest /sc_reset:<domain>\<domain controller>
share|improve this answer

nltest.exe can be used to check the channel and attempt to reset it.

nltest.exe /sc_verify:<>

If that does not do it, you can restart the netlogon service (I mainly use PowerShell, so I'll give an example of that).

Get-Service netlogon | restart-service
nltest.exe /sc_verify:<>

I ran the nltest command after restarting the service to validate that the secure channel was back in operation.

If you've made some network changes (IP Addresses, changing hardware, virtualizing, etc..) you might want to flush your dns cache and clear your arp table before running the above commands.

ipconfig /flushdns
arp -d *
Get-Service netlogon | restart-service
nltest.exe /sc_verify:<>
share|improve this answer

UPDATED for new versions of powershell

Open PowerShell AsAdministrator

Test-ComputerSecureChannel -Verbose {If False then run:} Test-ComputerSecureChannel -Repair -Server PDCEmulatorName -Verbose {If repaired you will see message, if it fails then try adding a credential} Test-ComputerSecureChannel -Repair -Server PDCEmulatorName -Credential Domain\UserName -Verbose

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.