August 11

0 comments

Scheduled restart of uvnc_service to restore connectivity when away with UVNC VNC server

By Christopher Mendla

August 11, 2015


Last Updated on November 30, 2019 by Christopher G Mendla

I use UVNC to remote into my desktop while I’m not in my home office.

I have been running into situations where the uvnc_service needs to be restarted.  Of course, if you aren’t in front of the machine or no one is available, then you can’t restart the service. This could be a problem if you need access and are away.

One solution, that I might consider later, would be a remote boot over IP. I’ve tried that and haven’t had any success.

Another solution is to set up a scheduled task to restart the uvnc service   I decided that restarting the service at 4 am would work for me. That means, that if I am away, I could end up with 24 hours where I don’t have access. However, if uvnc isn’t working, the scheduled restart should allow access the following morning. Remember that if you have a session connected, restarting the service will break the connection. I”m considering adding a second time for the restart, perhaps at dinner time. I will just have to make sure I am not in the middle of any data transfers when the service restarts.

It is simple to set this up.

  1. Go to Notepad and create a batch file with the following two lines. I saved it to the desktop. That way, if someone is at the machine, they can just click the icon to restart the service.

Net Stop uvnc_service
Net Start uvnc_service

  1. Schedule a task with the following parameters
    1. The time(s) you want the task to run.
    2. The name of the batch file
    3. “Run with all privileges”
    4. “Wake Computer to run”

You can test this by:

  • Going to the Uvnc icon in the tray,
  • right clicking and choosing “Stop Service”.
  • Go to the task in task scheduler and chose “Run”.
  • A few seconds later, you should see the UVNC icon and it should be a bluish – teal color.
So, if you are away for a week, this system should restore the Uvnc functionality each night if it isn’t working properly.

Christopher Mendla

About the author

Leave a Reply

Your email address will not be published. Required fields are marked

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}