And Media Center Account which logs off on exit.

MysticX

New member
Local time
5:37 PM
Messages
23
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:

My Computer My Computer

At a glance

Windows 7 32-bitPhenom 4 9600 BE4GBAti 5770
Computer Manufacturer/Model Number
Custom
OS
Windows 7 32-bit
CPU
Phenom 4 9600 BE
Motherboard
Gigabyte GA-790X-UDP
Memory
4GB
Graphics Card(s)
Ati 5770
Sound Card
Realtek HD
Monitor(s) Displays
Samsung 940MW
PSU
Cooler Master 620W
Cooling
Standard
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

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:

My Computer My Computer

At a glance

Windows 10 Pro x64 EN-GB1.6 GHz Intel Core i7-720QM Processor6 GBATI Mobility Radeon HD 5850 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
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 My Computer

At a glance

Windows 7 32-bitPhenom 4 9600 BE4GBAti 5770
Computer Manufacturer/Model Number
Custom
OS
Windows 7 32-bit
CPU
Phenom 4 9600 BE
Motherboard
Gigabyte GA-790X-UDP
Memory
4GB
Graphics Card(s)
Ati 5770
Sound Card
Realtek HD
Monitor(s) Displays
Samsung 940MW
PSU
Cooler Master 620W
Cooling
Standard
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 My Computer

At a glance

Windows 10 Pro x64 EN-GB1.6 GHz Intel Core i7-720QM Processor6 GBATI Mobility Radeon HD 5850 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
What about cmd line for keyboard input? such as FN + F4? That is the input on the HP models.
 

My Computer My Computer

At a glance

Windows 7 32-bitPhenom 4 9600 BE4GBAti 5770
Computer Manufacturer/Model Number
Custom
OS
Windows 7 32-bit
CPU
Phenom 4 9600 BE
Motherboard
Gigabyte GA-790X-UDP
Memory
4GB
Graphics Card(s)
Ati 5770
Sound Card
Realtek HD
Monitor(s) Displays
Samsung 940MW
PSU
Cooler Master 620W
Cooling
Standard
Back
Top