Prohibit renaming private remote access connections
Interdire de renommer les connexions d’accès à distance privées
Explanation
Determines whether users can rename their private remote access connections.
Private connections are those that are available only to one user. To create a private connection, on the Connection Availability page in the New Connection Wizard, click the "Only for myself" option.
If you enable this setting (and enable the "Enable Network Connections settings for Administrators" setting), the Rename option is disabled for all users (including administrators).
Important: If the "Enable Network Connections settings for Administrators" is disabled or not configured, this setting will not apply to administrators on post-Windows 2000 computers.
If you disable this setting or do not configure it, the Rename option is enabled for all users' private remote access connections. Users can rename their private connection by clicking an icon representing the connection or by using the File menu.
Note: This setting does not prevent users from using other programs, such as Internet Explorer, to bypass this setting.
Détermine si les utilisateurs peuvent renommer leurs connexions d’accès à distance privées.
Les connexions privées sont celles qui sont disponibles uniquement à un utilisateur. Pour créer une connexion privée, sur la page Disponibilité de la connexion dans l’Assistant Nouvelle connexion, cliquez sur l’option « Uniquement pour moi ».
Si vous activez ce paramètre (ainsi que le paramètre « Activer les paramètres Connexions réseau pour les administrateurs »), l’option Renommer est désactivée pour tous les utilisateurs (administrateurs compris).
Important : si le paramètre « Activer les paramètres Connexions réseau pour les administrateurs » est désactivé ou n’est pas configuré, ce paramètre ne s’appliquera pas aux administrateurs sur les ordinateurs sur lesquels une version postérieure à Windows 2000 est installée.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, l’option Renommer est activée pour les connexions d’accès à distance privées pour tous les utilisateurs. Les utilisateurs peuvent renommer leur connexion privée en cliquant sur une icône représentant la connexion ou en utilisant le menu Fichier.
Remarque : ce paramètre n’empêche pas les utilisateurs d’utiliser d’autres programmes, comme Internet Explorer, pour contourner ce paramètre.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Network Connections- Value name
NC_RenameMyRasConnection
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: NetworkConnections/NC_RenameMyRasConnection
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NC_RenameMyRasConnection' -Value 0 -Type DWordDisable
# Disable: NetworkConnections/NC_RenameMyRasConnection
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NC_RenameMyRasConnection' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": NetworkConnections/NC_RenameMyRasConnection
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Network Connections'
Remove-ItemProperty -Path $k -Name 'NC_RenameMyRasConnection' -ErrorAction SilentlyContinue