How to use Group Policy to enable and disable Windows Media Center in Windows Vista Home Premium and Ultimate editions
Description of the issue
Recently, I was contacted by a customer who is running Windows Vista Home Premium, but who was unable to launch Windows Media Center. There was not a shortcut available on the Windows Vista start menu, and when they tried navigating directly to c:\Windows\eHome\ and running ehShell.exe directly, they received an error dialog with the following information:
- Title: Windows Media Center
- Text: Windows cannot open this program because it has been prevented by a software restriction policy. For more information contact your system administrator.
The dialog looks like this:
In Windows Vista, a Group Policy setting was introduced to allow administrators to configure systems to not allow Windows Media Center to run. This setting was designed to be used in locked down environments such as corporate networks where Windows Media Center is not needed on a day-to-day basis. However, it is possible that this setting could end up getting configured on home systems as well.
How to work around the issue
If you see the above dialog when attempting to launch Windows Vista Media Center, you can use the following steps to disable the Windows Media Center Group Policy settings using the Group Policy Object Editor in Windows Vista:
- Click on the Start menu and type gpedit.msc to locate the Group Policy Object Editor
- Run gpedit.msc and click Continue to allow it to run elevated
- Expand Computer Configuration (for per-machine settings), then Administrative Templates, then Windows Components
- Click on the Windows Media Center item under Windows Components
- Right-click on the setting named Do not allow Windows Media Center to run and choose Properties
- In the Properties dialog, change the setting from Enabled to either Disabled or Not Configured and click OK
- Expand User Configuration (for per-user settings), then Administrative Templates, then Windows Components
- Click on the Windows Media Center item under Windows Components
- Right-click on the setting named Do not allow Windows Media Center to run and choose Properties
- In the Properties dialog, change the setting from Enabled to either Disabled or Not Configured and click OK
- Close the Group Policy Object Editor
- Try to launch Windows Vista Media Center again
If you see this dialog on your system, it is important to check both the Computer Configuration (per-machine) and User Configuration (per-user) locations for this setting because if either one of them is enabled, Windows Media Center will not launch and will display the above dialog.
What is happening behind the scenes
Behind the scenes, the Group Policy Object Editor sets the following registry values:
- For per-user settings available in the User Configuration tab:
- [HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\WindowsMediaCenter]
- MediaCenter
- For per-machine settings available in the Computer Configuration tab:
- [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsMediaCenter]
- MediaCenter
The logic for this setting is backwards from what you might typically expect because the setting indicates whether or not Windows Media Center should be disabled (as opposed to enabled). If the setting is enabled, it means that Windows Media Center will not be allowed to run. The MediaCenter registry value will be set to 1 in that case. If the setting is disabled or not configured, it means that Windows Media Center will be allowed to run. If the setting is disabled, the MediaCenter registry value will be set to 0. If the setting is not configured at all, the MediaCenter registry value will not exist on the system.
Where to find additional information
This Windows Media Center Group Policy setting and others that are supported in Windows Vista are described in more detail in the Windows Vista Group Policy Settings Reference. This spreadsheet is available for download at https://www.microsoft.com/downloads/details.aspx?FamilyID=41dc179b-3328-4350-ade1-c0d9289f09ef.
Comments
Anonymous
January 28, 2008
PingBack from http://msdnrss.thecoderblogs.com/2008/01/28/Anonymous
January 28, 2008
Aaron Stebner has posted an interesting tip on using Group Policy to control the availability of MediaAnonymous
January 29, 2008
Yesterday, I posted some information about a Group Policy setting that can prevent Windows Media CenterAnonymous
January 29, 2008
PingBack from http://msdnrss.thecoderblogs.com/2008/01/29/how-to-re-enable-windows-media-center-in-the-default-programs-control-panel-on-windows-vista-home-premium-and-ultimate/Anonymous
January 29, 2008
Yesterday, I posted some information about a Group Policy setting that can prevent Windows Media CenterAnonymous
February 02, 2008
The comment has been removedAnonymous
January 18, 2009
PingBack from http://www.hilpers.nl/399898-windows-media-centerAnonymous
January 18, 2009
PingBack from http://www.keyongtech.com/2819662-lost-windows-media-center