Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: And Media Center Account which logs off on exit.

22 Mar 2010   #1

Windows 7 32-bit
And Media Center Account which logs off on exit.

I am wondering if itīs possible when I create an account which only purpose is to run Media Center. So, I was thinking if I place a shortcut on the startup folder to make it start automatically, but I would like it to log off on exit.

Is that possible? Maybe there is a script to include in the shortcut?

My System SpecsSystem Spec
23 Mar 2010   #2

Microsoft Community Contributor Award Recipient


A simple two line batch file, add this to the Startup.

Open Notepad, type following lines:
Save it as a bat file, for instance wmc.bat. Remember to choose Save as type: All Files

And Media Center Account which logs off on exit.-allfiles.png

Place the file in the user's Startup folder.

When this user now logs in, WMC is automatically started. When user closes WMC, he / she is automatically logged off.

You can use different startup options if you want to, to start WMC in a specific mode. Some possible options are:
  • /mcesuperbar://tv?live=true
    • No startup animation, goes directly to live TV
  • /nostartupanimation
    • Disables the startup animation
  • /widescreen
    • Force widescreen mode
  • /playfavmusic
    • Play favorite music at startup
  • /playallmusic
    • Play all music at startup
  • /playfavslideshow
    • Play favorite slideshow at startup
  • /playfavslideshowwithmusic
    • Play favorite slideshow with music
  • /playslideshow
    • Play all slideshowsat startup
  • /playslideshowwithmusic
    • Play all slideshows with music
  • /screensaver
    • Start media center in screensaver mode
  • /noshutdownui
    • Removes the shutdown item from Tasks (user can not shut down the computer from WMC > Tasks)

Start WMC in Live TV, logoff when WMC is closed:
%windir%\ehome\ehshell.exe /mcesuperbar://tv?live=true
Start WMC in widescreen mode playing favorite music, no startup animation, logoff when WMC is closed:
%windir%\ehome\ehshell.exe /nostartupanimation /widescreen /playfavmusic
Hope this helps.


My System SpecsSystem Spec
25 Mar 2010   #3

Windows 7 32-bit like a charm.

do you have a similar script that automatically sets display 2 to ON and 1 off, and on exit, 1 to ON and 2 to off?

because if I select the display manually in wmc account, it doesnīt revert back on logoff...which I think is a major bummer.

itīs an ATI video card driver, but I am not usng ATI controls since it wont work, only the normal win screen resolution.
My System SpecsSystem Spec

25 Mar 2010   #4

Microsoft Community Contributor Award Recipient


I do not know how to change the display from command line. I'll have to ask around.

However, this small utility should do that for you: 12noon :: Display Changer
Download and install, add to your batch file with appropriate switches.

My System SpecsSystem Spec
28 Mar 2010   #5

Windows 7 32-bit

What about cmd line for keyboard input? such as FN + F4? That is the input on the HP models.
My System SpecsSystem Spec

 And Media Center Account which logs off on exit.

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Windows 7 logs into wrong user account
I have a problem with a Windows 7 machine with three user accounts on it. and at random times, it will log onto a different user than the one I clicked on in the welcome screen. I googled the problem but nothing relevant
General Discussion
Windows 7 Main Account Logs On then Automatically Logs Off
New to the site and I hope this is in the right forum. I am using Windows 7 Pro 64 and my main account logs in then automatically logs off. I can successfully log in using Safe Mode to this account. I created another account called test and I can access this account in both Safe and Normal...
General Discussion
Guest Account logs in with temporary profile
Not sure how to fix this problem. I did not see a hive with the .bak extension in the HKEY_USERS section. I am loathe to delete the user account and files since Guest is a special account. Can someone suggest a course of action? Thanks. p.s. I typically keep the Guest account disabled,...
General Discussion
Laptop logs in using old user account
I bought a floor model laptop that has an account called Kiosk on it. I created a new account and an admin account and deleted the Kiosk account. When windows 7 boots up the kiosk account pops up and attempts to log in. I have to switch users and manually enter the name of the new account. When...
General Discussion
XBOX media center won't connect to windows 7 media center computer
Hi, I've been looking through all these threads regarding this issue and I can't figure it out. For some reason I have an older desktop running XP MCE and without trying to configure anything it automatically sees the XBOX on the network. I'm not interested in running it through that computer...
Media Center
Windows Media Player exit delay
Hello, I am sure this isn't too serious, but it's irritating:cry: Whenever I want to exit/close windows media player, there's a short delay, then the window disappears after about 1.5 - 2 seconds. It used to close instantly! I've made and uploaded a GIF animation of what happens here:...
Music, Pictures & Video

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Đ Designer Media Ltd

All times are GMT -5. The time now is 03:41.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App