Hacking Windows 7 Media Center

Clearing Guide Data and Tuner Setup from Windows 7 Media Center

by Michael Healy @ 9:15 am on September 1st, 2009 in tv listings with 18 Comments and Permalink

HDD-Windows There may come a time when you need to completely erase the history of your downloaded guide data and tuner setup. Something may have gone wrong with your setup, tuners may have changed or maybe you’re just looking to clean house a little. Don’t worry, this isn’t going to require a complete reinstall of Windows 7, the process is in fact quite easy. Windows 7 Media Center stores all the information we need to clear inside database files stored inside the ProgramData folder. However, we’ll need to close a few background services before we’re able to clear the files from the drive.

To get started open up Task Manager. You can either enter “task manager” under the start menu and select the first listing to “View running processes with Task Manager” or use the old standby of pressing ctrl-alt-delete and selecting Task Manager. Once inside the Task Manager select the Services tab and press the Services button.

services tab

Now locate the Services associated with Windows 7 Media Center then right click each one and select the option to Stop the service. You can also select the service then press the Stop link on the left hand side of the Services pane.

services

Once you’ve stopped both Media Center services return to the Task Manager window and open up the Processes tab. Here you’ll want to press the button to Show processes from all users. There are a number of processes that may or may not be running that will prevent you from deleting the guide database. Locate any running processes marked as part of the Media Center process such as the Receiver and Scheduler service as well as the In-band Guide Loader. Each of these processes will need to be terminated by pressing the End Process button before we can delete the existing database.

task manager

Now that we’re certain that no remaining Media Center processes are locking down access to the database we can finally open up Windows Explorer and locate the files we need to clear. Inside Windows Explorer navigate to C:\ProgramData\Microsoft\ehome.

program data

Inside the ehome folder you’ll see a .db file as well as a folder marked mcepgX-X-X, these are the files that need to be cleared in order to reset our TV setup and guide data from Media Center. Now that the Media Center processes have been stopped you should be able to delete the .db file as well as the folder and it’s contents to reset your TV setup to it’s original state.

After deleting the files we’ll want to restart the machine to ensure that all of the appropriate Media Center services are restarted. Afterward, open Media Center and enter the Setup Live TV option from the TV start menu.

That’s all there is to it! Windows 7 Media Center has been restored to the original Live TV guide settings and you can start fresh. Be sure to bookmark Hack7MC as well to find all the tips and information you need for your Windows 7 Media Center!

18 Comments


Ritchie
Comment #3009 from Ritchie [Reply]

I used the Guide Tool to clear the program data from media center, and I THINK media center reset the tuners as well when I restarted MC. Worth a try, see if it’s the same.

Simply select all the channels in the left pain, right click, and select delete.

Comment left September 1, 2009 at 12:18 pm with Permalink

Anonymous
Comment #3012 from Anonymous [Reply]

This would have (possibly) saved me from a fresh install this last weekend!.. Was adding an additional dual ATSC tuner (from 2 to 4) and had nothing but problems. Ended up breaking all tuners and only getting an error stating a critical error has occurred after tuner setup.
Fresh install fixed it all, but VERY annoying just to add a damn tuner!! (Also was the EXACT same model tuner as the one before that was working fine….Frustrating!).
Thanks for this, but I HOPE I never will need it now =P

Comment left September 1, 2009 at 1:55 pm with Permalink
@Reply #3018 from Michael Healy [Reply]

I was having trouble with the guide data after using Big Screen EPG recently. Hopefully this saves some people a lot of trouble going through a complete reinstall.

Comment left September 1, 2009 at 9:09 pm with Permalink

dgaust
Comment #3015 from dgaust [Reply]

The above post is not the ideal way to reset your database. Microsoft include a proper method for doing it.

Easiest way is to reset the database is to manually run the MCERecoveryTask located in Task Scheduler -> Microsoft -> Windows -> Media Centre.

Or from an elevated command prompt and run
mcupdate -MediaCenterRecoveryTask

Make sure you’ve quit mediacentre before you run these though.

Comment left September 1, 2009 at 6:32 pm with Permalink
@Reply #3017 from Michael Healy [Reply]

I can’t find any documentation on what this mcupdate switch performs, do you have a link to further information on it?

Comment left September 1, 2009 at 9:07 pm with Permalink

dgaust
Comment #3020 from dgaust [Reply]

It’s undocumented as far as I am aware, however it was provided by Mike Hayton from the eHome team as the way you should reset the TV database.

It does the job, and sets the TV stuff back to a virgin state, so you have to run the TV setup again.

There was a bug in RC with x64 that could cause a problem, but the workaround was to run the Task manually from the Task Scheduler.

Comment left September 1, 2009 at 10:10 pm with Permalink
@Reply #3021 from Michael Healy [Reply]

Interesting, is it necessary to shutdown the Media Center services such as the receiver and scheduler as well before running?

Comment left September 1, 2009 at 10:19 pm with Permalink

dgaust
Comment #3023 from dgaust [Reply]

No, just close Windows Mediacenter if it’s open. That’s it.

Comment left September 2, 2009 at 1:04 am with Permalink

mikehayton
Comment #3046 from mikehayton [Reply]

Yes – close media center and then run the MediaCenterRecoveryTask from the task scheduler (i.e. right click on it and choose Run). Dont do the run from elevated. Im pretty sure it needs the System account to run.

After its run, check that all the %programdata%\microsoft\ehome\mcepg*.db files are deleted.

Comment left September 2, 2009 at 11:59 pm with Permalink

Billy
Comment #3054 from Billy [Reply]

I was wondering is there a way to edit or delete the built in guide categories as mine do not seem to of any use and I cant see a way within media center?

Comment left September 3, 2009 at 4:43 am with Permalink

d0n3
Comment #3055 from d0n3 [Reply]

Can we change the record format .wtv? I would like to record with .ts (MPEG2 or H264). Is it possible?

Comment left September 3, 2009 at 7:08 am with Permalink
@Reply #3059 from Michael Healy [Reply]

I’m afraid that’s not possible due to DRM issues. Windows 7 requires that all TV be recorded as WTV.

Comment left September 3, 2009 at 8:30 am with Permalink

Johan
Comment #3829 from Johan [Reply]

After a first setup of tuner and channels, could I just copy the C:\ProgramData\MS\Ehome folder or those mcepg files and folder, to a safe place and when channeldata gets corrupted, channels are no longer in order or you get duplicated channels, I could stop all MCE services and replace the faulty mcepg files and folder with the “first” one I copied, and it would be as new again?

Comment left October 6, 2009 at 4:48 pm with Permalink

simspot
Comment #4290 from simspot [Reply]

I have multiple 7MCs in my house and was wondering if I could copy the mcepgX-X-X folder to the other machines after setting it up the first time. Anyone ever try this?

Comment left October 27, 2009 at 8:50 pm with Permalink

Anonymous
Comment #6471 from Anonymous [Reply]

THANK YOU!!! THANK YOU!!! THANK YOU!!!

And, once again, THANK YOU!!!

Comment left January 9, 2010 at 1:57 pm with Permalink

doug
Comment #7502 from doug [Reply]

After trying everything under the sun here’s what worked for me:

Check your computers clock and make sure it is up to date, if not (which is likely) synch it to the internet time server. Apparently the problem is due to some security issue which is either related to the clock being out of synch or uses the same mechanism. In any case, if you can synch your clock to the internet time server you’ll likely notice that your channel guide will start downloading again.

–Doug

Comment left February 7, 2010 at 3:22 pm with Permalink

SAM
Comment #7536 from SAM [Reply]

Make sure you have the right date. Media Center won’t download in windows 7 if you dont’ have the right date. I had a date 2 months ahead of the actual date and I tried and tried to update. Wasted 10 hours on trying to figure it out… check the date….

Comment left February 8, 2010 at 9:18 pm with Permalink

Leave A Comment

Post Anonymously, Fill in your details or Use one of the Social Networks below to login and post a comment!