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

Problem with restart/shutdown on windows 2003 R2

Post Reply
pbornacin
Posts: 7
Joined: 2010-07-01 07:19

Problem with restart/shutdown on windows 2003 R2

Post by pbornacin »

Hi to everybody, I have installed UltraVNC 1.0.8.2 on a few servers with windows 2000 and windows 2003 R2:
when I try to restart or when I try to shutdown servers with windows 2003 R2, instead of closing the server, the user is disconnected :( .
With windows 2000 everything works correctly. Do you have any idea about the reason of this problem?

Do you know if anybody else has already faced such problems?
I carried out several researches but I have not found anything.

thanks and best regards

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

Re: Problem with restart/shutdown on windows 2003 R2

Post by B »

When you say "shutdown servers" do you mean shut down the VNC server, or shut down the Windows server entirely?

What, exactly, happens "correctly" when you do it in Windows 2000?
pbornacin
Posts: 7
Joined: 2010-07-01 07:19

Re: Problem with restart/shutdown on windows 2003 R2

Post by pbornacin »

>When you say "shutdown servers" do you mean shut down the VNC server, or shut down the Windows server entirely?
I mean shutdown the Windows server entirely.

>What, exactly, happens "correctly" when you do it in Windows 2000?
When I try to reboot the windows 2000 server, the server is rebooted, not only the user is disconnected

P

:-] excuse for my poor english... sorry
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Problem with restart/shutdown on windows 2003 R2

Post by B »

Okay, I understand.

That's weird though. Are you sure that you're specifying a shutdown and not a logoff (or restart)?

The only other thing I can think of is that you may need to run the VNC server as a service to retain control at that point. Possibly a UAC issue?
pbornacin
Posts: 7
Joined: 2010-07-01 07:19

Re: Problem with restart/shutdown on windows 2003 R2

Post by pbornacin »

>[...]
>That's weird though. Are you sure that you're specifying a shutdown and not a logoff (or restart)?
Yes, i'm sure, i try on various server and with the support of my colleagues (

>The only other thing I can think of is that you may need to run the VNC >server as a service to retain control at that point. Possibly a UAC issue?
I try with various users (also with the domain administrator)... :tomato:
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Problem with restart/shutdown on windows 2003 R2

Post by B »

Okay, but is WinVNC running as a Windows <b>service</b>?
pbornacin
Posts: 7
Joined: 2010-07-01 07:19

Re: Problem with restart/shutdown on windows 2003 R2

Post by pbornacin »

>Okay, but is WinVNC running as a Windows service?
yes, but we have found the problem: if i set "Logoff workstation" When the last client Disconnects on UltraVnc settings, the server allways logoff the user but never shutdown/reboot (on Windows 2000 too). :o

bye

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

Re: Problem with restart/shutdown on windows 2003 R2

Post by B »

No kidding? That almost sounds like a UVNC bug then. If you were able to successfully initiate a shutdown via the Windows GUI, the system should still shut down, regardless of UVNC settings.
pbornacin
Posts: 7
Joined: 2010-07-01 07:19

Re: Problem with restart/shutdown on windows 2003 R2

Post by pbornacin »

>No kidding?
no kidding, i tried on 2 windows 2003 R2 server with the same result.

>That almost sounds like a UVNC bug then. If you were able to successfully >initiate a shutdown via the Windows GUI, the system should still shut down, >regardless of UVNC settings.
I'agree with you, if you can test yourself...

bye

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

Re: Problem with restart/shutdown on windows 2003 R2

Post by B »

Well, whaddya know! I was able to duplicate the problem to an XP station too!

I had to change my setting in ultravnc.ini as per [topic=18007][/topic]

Sure enough, when I told the system to shut down, it logged off instead, and left the station at a Ctrl-Alt-Del prompt (I'm on a domain).

Even more interestingly, if I tried the shutdown from the <b>physical station</b> while the VNC session was active, it STILL didn't really shutdown, and instead returned to the login prompt again as above.

Only when no VNC session was in effect could I shut down the station.

I'd say that's a pretty serious bug!

P.S. I encountered the usual UltraVNC weirdness too; after a first failed shutdown/logoff, when reconnecting to the service and logging in again via UVNC ("chunkviewer") the screen display was not being updated at all, except upon manual refreshes.
redge
1000
1000
Posts: 6797
Joined: 2004-07-03 17:05
Location: Switzerland - Geneva

Re: Problem with restart/shutdown on windows 2003 R2

Post by redge »

work around for force shutdown service uvnc_service

start "cmd.exe" as administrator
sc stop uvnc_service
close cmd

the long time known bug never been solved about
"When last client disconnect"
ultravnc.ini
LockSetting=1 =="Lock Workstation (w2k)"

parser mice/keyboard are buggy only in this area was known by UltraSam
UltraVNC 1.0.9.6.1 (built 20110518)
OS Win: xp home + vista business + 7 home
only experienced user, not developer
YY
200
200
Posts: 996
Joined: 2006-11-13 15:11

Re: Problem with restart/shutdown on windows 2003 R2

Post by YY »

redge wrote:work around for force shutdown service uvnc_service

start "cmd.exe" as administrator
sc stop uvnc_service
close cmd
This method is OK, but not applicable to pbornacin's situation ..... once uvnc_service stopped, he can't proceed to restart that pc REMOTELY.

Another workaround is using a shutdown/reboot tool with delay feature, like the Windows' buildin tools shutdown.exe or tsshutdn.exe. When got connected, you may run such command at the server pc, log out then and the server should reboot after the specified time.

See this site for a reference.
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Problem with restart/shutdown on windows 2003 R2

Post by B »

Couldn't you also just take redge's script and add a "shutdown" command to it? That would probably work too...
Post Reply