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

Disabling Local inputs using a prompt

Post Reply
Melon Head

Disabling Local inputs using a prompt

Post by Melon Head »

Hi. I am trying to figure out how to disable the local inputs (keyboard and mouse) from a computer running vncserver.exe , the catch is I want to know how to do it from the prompt.
I have a script that I have worked on that allows anyone I give it, and a couple files to, to double click a script and that quickly runs vnc to a listening viewer and allows work done on the machien remotely. This is a great tool, but it would be nice to disallow their input while doing some sensative work on their computer so nothign gets typed in wrong.
I have looked through the commands and have found the view only command but can't seem to find what I am looking for. I have tried:
winvnc.exe -connect ipaddress -disablelocalinput

and

winvnc.exe -connect ipaddress -disablelocalinput=true

but neither seem to work.

Anyone know the strign of code? I know it can be done in the properties menu so it has to be able to either be doen through a script (preferred) or a registry entry.
Thanks for any help in advance.
ipsec
Former moderator
Former moderator
Posts: 565
Joined: 2004-09-20 18:56
Contact:

Post by ipsec »

Here are the two registry entries you need to modify via your script.


[HKEY_CURRENT_USER\Software\ORL\WinVNC3]
"LocalInputsDisabled"=dword:00000001

and

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"LocalInputsDisabled"=dword:00000001

This is for version RC18,may be different for 19..
Post Reply