Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has 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.

 
03-22-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?


Last edited by MysticX; 03-22-2010 at 09:18 PM.. Reason: reforming question.
My System SpecsSystem Spec
03-23-2010   #2


 


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

Last edited by Kari; 03-25-2010 at 07:35 PM.. Reason: Typo
My System SpecsSystem Spec
03-25-2010   #3


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
.


03-25-2010   #4


 


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
03-28-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
Reply

 And Media Center Account which logs off on exit. problems?



Thread Tools



Similar Threads for: And Media Center Account which logs off on exit.
Thread Forum
Laptop logs in using old user account General Discussion
Xbox 360 / Windows 7 / Media Center Extender - media sharing not worki Media Center
Xbox360 Media Center Extender Win7:Fix "Cannot Find Media Center PC" Media Center
XBOX media center won't connect to windows 7 media center computer Media Center
Windows Media Player exit delay Music, Pictures & Video


All times are GMT -5. The time now is 05:12 PM.



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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30