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
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
- /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