Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
Remote Desktop or RemoteApp session does not terminate due to spawned splwow64.exe process
Article ID: 2513330 - View products that this article applies to.
A Remote Desktop session that specifies a program to start on logon may not terminate in a timely manner when the specified program is exited. The remote session may appear empty with only a blank background.
This program may be specified under "Start the following program on connection" in RDP client settings or "Start the following program at logon" in Active Directory user properties.
The specified program may have spawned a new process. As part of the Remote Desktop session termination logic, if the specified program spawns a new process that new process is considered part of the program and the session will not terminate until that process also terminates.
One scenario that meets this criteria is printing from a 32-bit application on a 64-bit Remote Desktop Session Host. This printing action will spawn splwow64.exe, the 32-bit to 64-bit thunking process for spooler. Splwow64.exe has a 3 minute timeout to prevent the process from being repeatedly re-spawned during heavy printing, so it does not immediately exit when printing is complete. This can cause the remote session to to appear "hung" with a blank background.
You can add the splwow64.exe process to the following registry key to tell the operating system that the process may be safely terminated automatically:
Value name: splwow64.exe
Data type: REG_DWORD
Value data: 0
Terminal Services RemoteApp Session Termination Logic
(http://go.microsoft.com/fwlink/?LinkId=151500)for other considerations.