And Media Center Account which logs off on exit.


  1. Posts : 23
    Windows 7 32-bit
       #1

    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; 22 Mar 2010 at 21:18. Reason: reforming question.
      My Computer


  2. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #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; 25 Mar 2010 at 19:35. Reason: Typo
      My Computer


  3. Posts : 23
    Windows 7 32-bit
    Thread Starter
       #3

    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 Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #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 Computer


  5. Posts : 23
    Windows 7 32-bit
    Thread Starter
       #5

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


 

  Related Discussions
Our Sites
Site Links
About 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 08:22.
Find Us