Skip to main content
If anyone is running WSA on a Terminal Server and having hanging issues on logoff, here's how to fix it:

 

Adding a wrsa.exe DWORD value, with no data, to the registry key:

HKLMSYSTEMCurrentControlSetControlTerminal ServerSysProcs.

 

Simply creating a .reg file with the contents below, will add this key:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerSysProcs]

"wrsa.exe"=dword:00000000
We have discovered that key alone isn't providing the best solution for the issue. I have done some testing and the following keys together alleviate the issue:

 

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerSysProcs]

"wrsa.exe"=dword:00000000

 

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl]

“WaitToKillAppTimeout”=”2000”

“AutoEndTasks”=hex:0

 

We are working on a fix for this at the agent level ouside of these registry keys. We should have this fix out hopfully soon. Please keep an eye on our release notes.
I can see the key type of the first entry but i dont want to assume the other two. Can you list what type of key the last two entries are:

 

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerSysProcs]

DWORD: --"wrsa.exe"=dword:00000000

 

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl]

“WaitToKillAppTimeout”=”2000”  -- Is this STRING?

“AutoEndTasks”=hex:0                  -- Is this DWORD?
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerSysProcs]

DWORD: --"wrsa.exe"=dword:00000000

 

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControl]

“WaitToKillAppTimeout”=”2000”     <--- REG_SZ

“AutoEndTasks”="1"                          <--- REG_SZ

 

Sorry for the confusion. You should set those values to what is acceptable for your environment, I recommend what I just listed above.

Reply