Do not allow Windows Media Center to run
Ne pas autoriser l’exécution de Windows Media Center
Explanation
This policy setting allows or prevents Windows Media Center to run.
Windows Media Center is a digital media player and video recorder that allows users to organize and play music and videos, and to view and record live television.
If you enable this policy setting, Windows Media Center will not run.
If you disable or do not configure this policy setting, Windows Media Center can be run.
Ce paramètre de stratégie autorise ou empêche l’exécution de Windows Media Center.
Windows Media Center est à la fois un lecteur multimédia numérique et un magnétoscope numérique qui permet aux utilisateurs d’organiser et de lire des morceaux de musique ou des vidéos, ainsi que de visionner et d’enregistrer des émissions de télévision en direct.
Si vous activez ce paramètre de stratégie, Windows Media Center ne s’exécute pas.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, Windows Media Center peut s’exécuter.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsMediaCenter- Value name
MediaCenter
| 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: MediaCenter/MediaCenter_Disable_2
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaCenter'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'MediaCenter' -Value 1 -Type DWordDisable
# Disable: MediaCenter/MediaCenter_Disable_2
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaCenter'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'MediaCenter' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MediaCenter/MediaCenter_Disable_2
$k = 'HKLM:\Software\Policies\Microsoft\WindowsMediaCenter'
Remove-ItemProperty -Path $k -Name 'MediaCenter' -ErrorAction SilentlyContinue