Hey Guys -
I use VNC on all my systems and have a quick question. I'm trying to write a script which will kill a specific process whenever a user connects via VNC and execute a string to restart it once a user disconnects. What would be the best method or trigger for determining this? The only thing I could think of was to query netstat to see if port 5900 was Listening or Established, but it shows "Listening" even if someones connected. If you cant tell, I'm wanting to do this on my Windows (10) systems.
Any suggestions?
Thanks, but
Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
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
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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
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
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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
Detecting VNC Connect/Disconnect (Windows)
- Rudi De Vos
- Admin & Developer
- Posts: 6880
- Joined: 2004-04-23 10:21
- Contact:
Re: Detecting VNC Connect/Disconnect (Windows)
event id 1 == viewer connect
event id 3 == viewer diconnect
Using the event viewer you can add some tasks to event
Orde can be 1 1 3 3 1 3 1 3, you tasks need to take this in account
event id 3 == viewer diconnect
Using the event viewer you can add some tasks to event
Orde can be 1 1 3 3 1 3 1 3, you tasks need to take this in account