Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Log out user disconnects VNC session on Win 7 Pro 64bit

Post Reply
ahwolfe
Posts: 3
Joined: 2011-12-20 21:56
Location: Ft. Worth, TX, USA
Contact:

Log out user disconnects VNC session on Win 7 Pro 64bit

Post by ahwolfe »

Issue: If I try to log out the current user while connected via VNC the session disconnect and I have to reconnect again at which point I can log in as another user. The problem this poses is that I have some clients that use an automatic login that is difficult to work around unless someone is there in front of the PC. I've tried connecting from a remote workstation using both Windows XP and Windows 7 64bit and get the same results.

VNC server OS: Windows 7 Profession SP1 64bit
VNC Server version: 1.0.9.6.1 with SecureVNC v2.3.0.0

VNC Viewer OS: Windows XP SP3 and Windows 7 Professional SP1 64bit
VNC Viewer version 1.0.9.6.1 with SecureVNC v2.3.0.0

Contents of Server UltraVNC.ini file:

Code: Select all

[admin]
UseRegistry=0
MSLogonRequired=0
NewMSLogon=0
DebugMode=2
Avilog=0
path=C:\Program Files\UltraVNC
DebugLevel=10
DisableTrayIcon=0
LoopbackOnly=0
UseDSMPlugin=1
AllowLoopback=1
AuthRequired=1
ConnectPriority=1
DSMPlugin=SecureVNCPlugin64.dsm
AuthHosts=
DSMPluginConfig=
AllowShutdown=0
AllowProperties=1
AllowEditClients=1
FileTransferEnabled=1
FTUserImpersonation=1
BlankMonitorEnabled=1
BlankInputsOnly=0
DefaultScale=1
CaptureAlphaBlending=0
BlackAlphaBlending=0
primary=1
secondary=0
SocketConnect=1
HTTPConnect=0
XDMCPConnect=0
AutoPortSelect=0
PortNumber=59100
HTTPPortNumber=5800
IdleTimeout=0
RemoveWallpaper=1
RemoveAero=0
QuerySetting=2
QueryTimeout=0
QueryAccept=0
QueryIfNoLogon=0
InputsEnabled=1
LockSetting=0
LocalInputsDisabled=0
EnableJapInput=0
kickrdp=0
clearconsole=0
[admin_auth]
group1=
group2=
group3=
locdom1=0
locdom2=0
locdom3=0
[ultravnc]
passwd=XXXXXXXXXXXXXXXXXX
passwd2=XXXXXXXXXXXXXXXXXX
[poll]
TurboMode=0
PollUnderCursor=1
PollForeground=1
PollFullScreen=1
OnlyPollConsole=1
OnlyPollOnEvent=0
MaxCpu=40
EnableDriver=1
EnableHook=1
EnableVirtual=0
SingleWindow=0
SingleWindowName=
[Permissions]
It looks like Windows is actually forcing the session to close based on the entries I'm seeing in the WinVNC.log file (shown below). I've searched the forums here and the Net but haven't found anything that addresses the issue other than one poster who said he re-installed and it started working. I've tried that but it didn't make a difference. On a whim I tested another Windows 7 system using RealVNC E4.6.3 and got the same results which supports my theory that Windows 7 is the culprit here and not UltraVNC but I'm hoping you guys can offer some insight on how I can resolve this problem. I do not have this problem when connecting to VNC servers running Windows XP SP3.

WinVNC.log snippet:

Code: Select all

Tue Dec 20 14:39:36 2011
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: Andy 
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: Andy 
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack call - Runningasservice
vncmenu.cpp : ########### vncMenu::AddTrayIcon - UserName = Andy
vncmenu.cpp : ########### vncMenu::AddTrayIcon - ADD Tray Icon call
vncmenu.cpp : ########### Shell_TrayWnd found 1
HideDesktop.cpp : Killwallpaper 1
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - UserNAme found: Andy 
vncmenu.cpp : ############### Usernames change: old="Andy", new="Andy"
Tue Dec 20 14:39:40 2011
vncmenu.cpp : Session ID 1
vncdesktopthread.cpp : quitting desktop server thread
 --Invalid window handle.
vncdesktop.cpp : SetBlankMonitor: monitor on, using alpha false
vncdesktopthread.cpp : quitting desktop server thread:SetBlockInputState
vncdesktopthread.cpp : quitting desktop server thread:ClearShiftKeys
vncdesktopthread.cpp : quitting desktop server thread:g_DesktopThread_running=false
vncdesktopsink.cpp : ShutdownInitWindowthread 
vncdesktopsink.cpp : WM_DISPLAYCHANGE
vncdesktopsink.cpp : Resolution switch detected, driver active
vncservice.cpp : SelectHDESK to Winlogon (24) from 2c8
vncdesktopthread.cpp : quitting desktop server thread:m_desktop->Shutdown
vncdesktopsink.cpp : OOOOOOOOOOOO 798 393646
vncdesktopsink.cpp : OOOOOOOOOOOO called wm_quit
vncdesktopsink.cpp : WM_DESTROY
vncdesktopsink.cpp : OOOOOOOOOOOO end dispatch
Tue Dec 20 14:39:41 2011
vncmenu.cpp : WM_QUERYENDSESSION session!=0
vncmenu.cpp : KillAuthClients() ID_CLOSE 
vncserver.cpp : killing auth client
vncclient.cpp : client Kill() calledvsocket.cpp : closing socket
vncserver.cpp : KillAuthClients() done
vsocket.cpp : socket error 1: 10004
 --A blocking operation was interrupted by a call to WSACancelBlockingCall.
vncmenu.cpp : vncMenu::Shutdown: Close menu - Disconnect all - Shutdown server
HideDesktop.cpp : Restorewallpaper 1
HideDesktop.cpp : Restorewallpaper 1 0
vncmenu.cpp : vncMenu WM_CLOSE call - All cleanup done
vncservice.cpp : SelectHDESK to Winlogon (24) from 2e8
vncclient.cpp : client disconnected : 207.71.54.251 (1)
vncclient.cpp : disable update thread
vncclient.cpp : enable/disable synced
vncclient.cpp : kill update thread
vncclient.cpp : stopping update thread
client sent 847 updates
vncclient.cpp : update thread gone
vncserver.cpp : removing authorised client
vncserver.cpp : deleting desktop server
vncdesktop.cpp : ~vncDesktop 
vncdesktopsink.cpp : ~vncDesktop::Tell initwindowthread to close 
vncdesktopsink.cpp : ~vncDesktop:: iniwindowthread proper closed 
 --Invalid thread identifier.
vncdesktop.cpp : SetBlankMonitor: monitor on, using alpha false
vncdesktopsink.cpp : ShutdownInitWindowthread 
vncservice.cpp : SelectHDESK to Winlogon (24) from 24
vncdesktop.cpp : ~vncDesktop Shutdown()
vncdesktop.cpp : ~vncDesktop m_lGridsList.clear
vncserver.cpp : desktop deleted
vncserver.cpp : RemoveClient() done
vncclient.cpp : ~vncClient() executing...
vncclient.cpp : deleting socket
Tue Dec 20 14:39:43 2011
vncmenu.cpp : quitting from WM_DESTROY
vncserver.cpp : KillAuthClients() done
 --Invalid window handle.
vncmenu.cpp : vncmenu killed
Tue Dec 20 14:39:49 2011
vncserver.cpp : authhosts set to ""
vncproperties.cpp : ***** DBG - Load User Preferences
vncproperties.cpp : clearing user settings
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncpasswd.h : PASSWD : FromClear called
vsocket.cpp : VSocket() m_pDSMPlugin = NULL 
 --The system cannot find the file specified.
vncproperties.cpp : $$$$$$$$$$ ApplyUserPrefs - Plugin Enabled - Call SetDSMPlugin() 
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Entry 
vncsockconnect.cpp : started socket connection thread
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Enabled 
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Plugin NOT loaded - Try to load it 
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Plugin successfully loaded 
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Init plugin call 
 --The filename, directory name, or volume label syntax is incorrect.
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - SetPluginParams call 
vncserver.cpp : DSMPlugin Params OK
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncpasswd.h : PASSWD : ToText called
vncmenu.cpp : ########### vncMenu::AddTrayIcon - UserName = 
Tue Dec 20 14:39:51 2011
winvnc.cpp : ****************** WaitForSingleObject - Shutdown server
 --The parameter is incorrect.
Tue Dec 20 14:39:52 2011
vsocket.cpp : VSocket() m_pDSMPlugin = NULL 
vncsockconnect.cpp : accepted connection from 207.71.54.251
Tue Dec 20 14:39:54 2011
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncproperties.cpp : ***** DBG - Force USER SYSTEM 2
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack call - Runningasservice
vncmenu.cpp : ########### vncMenu::AddTrayIcon - UserName = 
vncmenu.cpp : vncMenu::Shutdown: Close menu - Disconnect all - Shutdown server
HideDesktop.cpp : Restorewallpaper 0
vncmenu.cpp : vncMenu WM_CLOSE call - All cleanup done
Tue Dec 20 14:39:56 2011
vncmenu.cpp : quitting from WM_DESTROY
vncserver.cpp : KillAuthClients() done
 --Invalid window handle.
vncmenu.cpp : vncmenu killed
HideDesktop.cpp : Restorewallpaper 0
winvnc.cpp : ################## Closing Imp Thread
winvnc.cpp : ****************** Kill SDTimer
winvnc.cpp : ################## SHUTING DOWN SERVER ####################
 --Attempt to release mutex not owned by caller.
vncserver.cpp : shutting down server object1
vsocket.cpp : shutdown socket
vsocket.cpp : closing socket
 --A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
vsocket.cpp : VSocket() m_pDSMPlugin = NULL 
vncsockconnect.cpp : quitting socket connection thread
 --A blocking operation was interrupted by a call to WSACancelBlockingCall.
Tue Dec 20 14:39:57 2011
vsocket.cpp : closing socket
 --No connection could be made because the target machine actively refused it.
vncserver.cpp : KillAuthClients() done
vncserver.cpp : KillUnauthClients() done
vncserver.cpp : ~server m_pDSMPlugin = NULL 
 --Class does not exist.
Tue Dec 20 14:40:03 2011
vncserver.cpp : authhosts set to ""
vncproperties.cpp : ***** DBG - Load User Preferences
vncproperties.cpp : clearing user settings
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncpasswd.h : PASSWD : FromClear called
vsocket.cpp : VSocket() m_pDSMPlugin = NULL 
 --The system cannot find the file specified.
vncproperties.cpp : $$$$$$$$$$ ApplyUserPrefs - Plugin Enabled - Call SetDSMPlugin() 
vncsockconnect.cpp : started socket connection thread
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Entry 
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Enabled 
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Plugin NOT loaded - Try to load it 
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Plugin successfully loaded 
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - Init plugin call 
 --The filename, directory name, or volume label syntax is incorrect.
vncserver.cpp : $$$$$$$$$$ SetDSMPlugin - SetPluginParams call 
vncserver.cpp : DSMPlugin Params OK
h:\ultravnc_195_turbojpeg\ultravnc project root\ultravnc\winvnc\winvnc\vncpasswd.h : PASSWD : ToText called
vncmenu.cpp : ########### vncMenu::AddTrayIcon - UserName = 
Tue Dec 20 14:40:08 2011
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncproperties.cpp : ***** DBG - Force USER SYSTEM 2
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack call - Runningasservice
vncmenu.cpp : ########### vncMenu::AddTrayIcon - UserName = 
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncmenu.cpp : ############### Usernames change: old="", new=""
Tue Dec 20 14:40:13 2011
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncproperties.cpp : ***** DBG - Force USER SYSTEM 2
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack call - Runningasservice
vncmenu.cpp : ########### vncMenu::AddTrayIcon - UserName = 
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncmenu.cpp : ############### Usernames change: old="", new=""
Tue Dec 20 14:40:18 2011
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncproperties.cpp : ***** DBG - Force USER SYSTEM 2
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncmenu.cpp : ########### vncMenu::TIMER TrayIcon 5s hack call - Runningasservice
vncmenu.cpp : ########### vncMenu::AddTrayIcon - UserName = 
vncservice.cpp : @@@@@@@@@@@@@ GetCurrentUser - Error: Usersize 0
vncmenu.cpp : ############### Usernames change: old="", new=""
I've enjoyed using UltraVNC since version 1.0.2. Any assistance you can offer is greatly appreciated.

Thanks,

Andy
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Log out user disconnects VNC session on Win 7 Pro 64bit

Post by B »

You're right, there doesn't seem to be a definitive solution. Rudi (the developer) wrote in 2010 that it was "fixed" for the (still upcoming?) UltraVNC 2.x, but I guess this is just how it works for now?

https://forum.ultravnc.net/viewtopic.ph ... 38&p=71878

Yet another reason to try to stay away from Win7 and 8 and finally start moving over to Linux... :)

I think KDE's about the best way to go at present.

But back to Windows reality, maybe you can just temporarily disable the automatic login on the machines that are giving you trouble?
ahwolfe
Posts: 3
Joined: 2011-12-20 21:56
Location: Ft. Worth, TX, USA
Contact:

Re: Log out user disconnects VNC session on Win 7 Pro 64bit

Post by ahwolfe »

B wrote:You're right, there doesn't seem to be a definitive solution. Rudi (the developer) wrote in 2010 that it was "fixed" for the (still upcoming?) UltraVNC 2.x, but I guess this is just how it works for now?

https://forum.ultravnc.net/viewtopic.ph ... 38&p=71878
Ugh, I was afraid that was the answer I would get. Any chance Rudi could offer some insight on what was done to resolve the issue or when ver 2 will be available?
B wrote:Yet another reason to try to stay away from Win7 and 8 and finally start moving over to Linux... :)

I think KDE's about the best way to go at present.
I'm not opposed to Linux but haven't found a version I'm happy with. Plus both SW:TOR and work require Windows :wink:
B wrote:But back to Windows reality, maybe you can just temporarily disable the automatic login on the machines that are giving you trouble?
Unfortunately the client requires the auto-login for security reasons so no luck there.
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Log out user disconnects VNC session on Win 7 Pro 64bit

Post by B »

Well, they're giving you complete control of the darned machine, so very temporarily (until your next login) turning off the autologin doesn't really seem like too much to ask, but good luck. Personally I often install LogMeIn Free as a primary or secondary remote control tool. You might want to try that (or TeamViewer).
Bonji
100
100
Posts: 339
Joined: 2008-05-13 14:54

Re: Log out user disconnects VNC session on Win 7 Pro 64bit

Post by Bonji »

I'm in the same boat with our Win7 computers, so I just use a little tool I wrote to disable the AutoLogon, do what I need to on the computer, then re-enable the AutoLogon when I'm done.

It's the best solution I've found to this point without having to resort to additional software on the client.
-Ben
ahwolfe
Posts: 3
Joined: 2011-12-20 21:56
Location: Ft. Worth, TX, USA
Contact:

Re: Log out user disconnects VNC session on Win 7 Pro 64bit

Post by ahwolfe »

Bonji wrote:I'm in the same boat with our Win7 computers, so I just use a little tool I wrote to disable the AutoLogon, do what I need to on the computer, then re-enable the AutoLogon when I'm done.

It's the best solution I've found to this point without having to resort to additional software on the client.
Yeah, we've employed a similar solution with our clients for the time being.

Merry Christmas and Happy New Year everyone! ^^
Post Reply