Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Is it possible to configure [DIS_UAC] equivalent with 1082?

Post Reply
Ligonet
Posts: 2
Joined: 2010-02-15 19:49

Is it possible to configure [DIS_UAC] equivalent with 1082?

Post by Ligonet »

Wondering, that I cannot find any discussion about this. New SC added the [DIS_UAC] section to helpfile.txt. This is a miraculous good thing and eases remote-support a lot.

As newer UVNC is able to work like Single Click with appropriate startup options, I tried to achieve dis_uac equivalent with the standard server, but until now it looks to me, that this is not available. Is it?
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Is it possible to configure [DIS_UAC] equivalent with 10

Post by supercoe »

Correct the option doesn't exist in the standard server.

Here are a couple batch files that will do what you want. Remember to right click and run them as administrator.

disableuac.cmd

Code: Select all

reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v PromptOnSecureDesktop_VNC
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto made_copy_posd

:: delims is a TAB followed by a space
FOR /F "tokens=2* delims=	 " %%A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v PromptOnSecureDesktop') DO SET OrigSetting=%%B
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v PromptOnSecureDesktop_VNC /t REG_DWORD /d %OrigSetting%
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v PromptOnSecureDesktop /t REG_DWORD /d 0 /f
:made_copy_posd

reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin_VNC
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto made_copy_cpba

:: delims is a TAB followed by a space
FOR /F "tokens=2* delims=	 " %%A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin') DO SET OrigSetting=%%B
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin_VNC /t REG_DWORD /d %OrigSetting%
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f
:made_copy_cpba
EXIT
enableuac.cmd

Code: Select all

reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v PromptOnSecureDesktop_VNC
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto replace_copy_posd
goto replace_cpba

:replace_copy_posd
FOR /F "tokens=2* delims=	 " %%A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v PromptOnSecureDesktop_VNC') DO SET OrigSetting=%%B
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v PromptOnSecureDesktop /t REG_DWORD /d %OrigSetting% /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v PromptOnSecureDesktop_VNC /f

:replace_cpba
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin_VNC
IF ERRORLEVEL 0 IF NOT ERRORLEVEL 1 goto replace_copy_cpba
goto end

:replace_copy_cpba
FOR /F "tokens=2* delims=	 " %%A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin_VNC') DO SET OrigSetting=%%B
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin /t REG_DWORD /d %OrigSetting% /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ConsentPromptBehaviorAdmin_VNC /f

:end
EXIT
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
Ligonet
Posts: 2
Joined: 2010-02-15 19:49

Post by Ligonet »

Great, thanks a lot

Hopefully the product will support it as an option in the future
Last edited by Ligonet on 2010-02-17 14:05, edited 1 time in total.
Post Reply