QueryOnlyIfLoggedOn

Only show the accept/reject prompt if there is likely to be a user present to respond.

The default value for this VNC parameter is false.

If you enable this policy setting, the corresponding VNC parameter will be set to TRUE.

If you disable this policy setting, the corresponding VNC parameter will be set to FALSE.

If you do not configure this policy setting, the corresponding VNC parameter will use the default or user-specified value.

Supported on: Windows 10

Registry HiveHKEY_CURRENT_USER
Registry PathSoftware\Policies\RealVNC\vncserver
Value NameQueryOnlyIfLoggedOn
Value TypeREG_SZ
Enabled Value1
Disabled Value0

realvnc_vncserver.admx

Administrative Templates (Computers)

Administrative Templates (Users)