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
MysticX

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
Kari

Microsoft Community Contributor Award Recipient

 

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

Open Notepad, type following lines:
Code:
%windir%\ehome\ehshell.exe
logoff.exe
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)
Examples:

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

Kari


My System SpecsSystem Spec
25 Mar 2010   #3
MysticX

Windows 7 32-bit
 
 

thx...works 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
Kari

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.

Kari
My System SpecsSystem Spec
28 Mar 2010   #5
MysticX

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
Reply

 And Media Center Account which logs off on exit.




Thread Tools




Similar help and support threads
Thread Forum
BSOD's on user account, auto reboots & auto logs-in to Admin account
Greetings, A friend of mine has been having a recurring issue with his computer that's getting worse. I've spent hours going through the forums, but haven't seen anything about this, so I'm posting here. Any help would be greatly appreciated. ISSUE: He uses his computer with a password...
System Security
Can't log in to Win7 profile - logs in to different account instead.
Today, when I logged on to my Administrator account as usual - it's the only account on my computer- I was surprised to see that my desktop wallpaper and icons were completely different. Some of my programs weren't showing up. And many files are missing. When I go to C: > Users > "MyName" I can...
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
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 10:06.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App