Policy
Require direct connection
Visual Studio
Policy overview
Key metadata and intent for this policy.
Prevents hosts from allowing relay-based guests from joining their session. Live Share already supports the “Live Share: Connection Mode” setting, and so this policy is effectively just enforcing it to “direct”. If this policy is disabled, the host can allow relay-based guests to join their session if the host has not configured the “Live Share: Connection Mode” setting. For more information, see: https://aka.ms/vsls-policies
Internal name
DirectConnectionMode
Policy ID
b26860d90c0a
Elements
0
Registry values
How enabled and disabled states update the registry.
| Scope | Registry location | Type | Enabled value | Disabled value | Copy |
|---|---|---|---|---|---|
| Computer | Path SOFTWARE\Policies\Microsoft\VisualStudio\LiveShare Value name DirectConnectionMode | REG_DWORD | HKLM 1 | HKLM 0 |
Registry location
Path
SOFTWARE\Policies\Microsoft\VisualStudio\LiveShare
Value name
DirectConnectionMode
Hive
HKLM
Enabled value
1
Disabled value
0
Policy elements
Inputs and configuration options exposed by this policy.
This policy has no additional user input fields.