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.
- 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
- Schedule a task with the following parameters
- The time(s) you want the task to run.
- The name of the batch file
- “Run with all privileges”
- “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.