Hide Network Tab
Masquer l’onglet Réseau
Explanation
This policy setting allows you to hide the Network tab.
If you enable this policy setting, the Network tab in Windows Media Player is hidden. The default network settings are used unless the user has previously defined network settings for the Player.
If you disable or do not configure this policy setting, the Network tab appears and users can use it to configure network settings.
Ce paramètre de stratégie vous permet de masquer l’onglet Réseau.
Si vous activez ce paramètre de stratégie, l’onglet Réseau du Lecteur Windows Media est masqué. Les paramètres réseau par défaut sont utilisés, sauf si l’utilisateur a préalablement défini des paramètres réseau pour le Lecteur.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’onglet Réseau apparaît et les utilisateurs peuvent y faire appel pour configurer les paramètres réseau.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsMediaPlayer- Value name
HideNetworkTab
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: windowsmediaplayer/DisableNetworkSettings
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'HideNetworkTab' -Value 1 -Type DWordDisable
# Disable: windowsmediaplayer/DisableNetworkSettings
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'HideNetworkTab' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": windowsmediaplayer/DisableNetworkSettings
$k = 'HKCU:\Software\Policies\Microsoft\WindowsMediaPlayer'
Remove-ItemProperty -Path $k -Name 'HideNetworkTab' -ErrorAction SilentlyContinue