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 27 Comments

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!

27 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 Permanent Link
@Reply #3019 from Michael Healy [Reply]

Would be nice to see a simple button included in Guide Tool to completely clear the old data.

Comment left September 1, 2009 at 9:10 pm Permanent Link

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 Permanent Link
@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 Permanent Link

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 Permanent Link
@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 Permanent Link

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 Permanent Link
@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 Permanent Link

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 Permanent Link

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 Permanent Link

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 Permanent Link

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 Permanent Link
@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 Permanent Link

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 Permanent Link

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 Permanent Link

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 Permanent Link

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 Permanent Link

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 Permanent Link

pat
Comment #8619 from pat [Reply]

Thanks very much for this, took awhile to find this site, but it fixed my issue when every other thing to try i found failed. Again, thanks!

Comment left March 18, 2010 at 5:49 pm Permanent Link
Comment #9024 from Chris Putnam [Reply]

Worked!!! Thanks so much. After a motherboard replacement two tuners were configured (only one card) and wouldn’t work until I followed your instructions.

Comment left April 3, 2010 at 8:13 pm Permanent Link
Comment #10615 from Kevin Lillard [Reply]

Sorry, but this so-called “solution” — and all other alleged solutions for Windows Media Player — just does not work. It’s a total failure. For a couple of days, I’ve been trying to set up WMP with a TV tuner. Everything fails. It fails at “downloading TV setup data.” Then it fails with the “encountered a serious error”{ message for which there is no explanation, here or anywhere else. You’d be better warning people to avoid WMP rather than giving them the impression that problems with the program can be “solved.”

Comment left May 5, 2010 at 1:18 am Permanent Link
@Reply #10628 from Michael Healy [Reply]

It sounds as though you mean Windows Media Center not WMP. It also sounds as though you’ve likely had a corrupt installation or a hardware problem to cause a serious error during the downloading of setup data since this is just a matter of retrieving data from a Microsoft data center and creating an SQL database to store it. You’ve likely got a corrupt Windows 7 or SQL database installation.

Having run Windows 7 Media Center as my main family room entertainment system since the early beta late last year without incident, I won’t be advising anyone against using it either.

Comment left May 5, 2010 at 8:01 am Permanent Link

Creagan
@Reply #12833 from Creagan [Reply]

@ Kevin Lillard – Add Windows Features – Untick Win Media Cmtr and restart – then add it back?

Comment left June 11, 2010 at 6:58 pm Permanent Link

Anonymous
Comment #10901 from Anonymous [Reply]

You rock, saved all problems with channels and program guide.

Comment left May 11, 2010 at 11:14 pm Permanent Link

BK
Comment #12836 from BK [Reply]

This worked great, just follow the instructions, and resets the settings of MWC back to ‘default’, same as doing a “fresh Install”, restart WMC and go through setup processes and everything should work (did for me). Was considering a re-install ’til I found this. GREAT info.

Comment left June 11, 2010 at 10:59 pm Permanent Link
Comment #13643 from thesaint [Reply]

I tried to follow the instructions but could not. Within the Task Manager only 2 files referred to WMC. (The Receiver Service, which I stopped and the Scheduler Service which was already stopped. In case there was no further items to stop I tried to go to C:\ProgramData\Microsoft\ehome (using Windows Explorer). There is no reference to “ProgramData”. I did check out the Program Files Microsoft but none has ehome!

Comment left July 9, 2010 at 10:51 am Permanent Link

mike
Comment #14598 from mike [Reply]

Unfortunately, this did not work for me. Suddenly, I could my two Haupauge 2250 tuners both stop receving channels. I followed this process to resetup the tuner, but the scan says no channels found. I know they’re there because when move the cable from the tuners to the TV, the channels show up on the TV. Like I said, it just stopped working one day and I can’t get it working again.

Comment left August 3, 2010 at 10:29 pm Permanent Link

Leave A Comment

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