Steam is installed on our home Windows 7 computer. Originally we shared my husband's account. At first it worked just fine whether we opened the games in my user account or his. About a year ago, clicking on the shortcut in my user account would open the games in his user account if he was logged in – I would hear the music, but nothing showed up on my screen or in Task Manager. I'd have to log him out, in which case Steam would open in my user account, or just play from his user account.
Recently, I got my own Steam account. Now if I manage to log in on Steam as me, Steam will subsequently open in my user account, even from the shortcuts on my husband's account. And if he is the last person to log on, Steam only opens in his account.
IF we remember to EXIT (merely logging off of Steam doesn't work), then Steam will load in our own accounts and allow us to log in. But this only works if my husband remembers to actually exit out. It's cumbersome to log in as him and fix Steam for myself, and he has a bad habit of randomly changing his password without telling me.
So, what I need is a method where I can, if need be, shut down a Steam running on another Windows user account so I can log in as me. Preferably I'd like something that can just be bundled into the startup shortcut, like the -login %u %p command.
Best Answer
You can use Windows 7's
Startup
folder to open Steam to the right account when you log in.What you would want to do is open your Start Menu. There should be a folder called
Startup
.Every time you log in, Windows will automatically start all the programs in this folder. So, we can put a Steam shortcut with the %u and %p command-line options.
How to do it?
This presumes your Steam executable is in C:\Program Files (x86)\Steam\Steam.exe
You'll have to repeat these steps for every account you want to do this to.
C:\Users\[PC Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
.Startup
(Capital S)."C:\Program Files (x86)\Steam\Steam.exe" -login [username] [password]
.Then repeat on your husband account, but this time, replace [username] and [password] with his username and password, and replace the [PC Username] with your husband's computer username.
You MUST be an administrator of the computer to do this:
Alternatively, if you both are logged in (ie. You're using as the active user, but he's logged in, but just stasis; not using; Switched users back to the login screen).
You'll have to manually stop the Steam process.
taskmgr
(or press Ctrl-Alt-Delete and click "Start Task Manager")Alternatively, you can do it with one command: Win-R and enter
taskkill /f /im steam.exe
. Make sure taskkill.exe is run with administrative privileges as it needs to be able to close programs that are run by a different user.Instead of creating a shortcut in the "Startup" folder, you could create a batch (.bat) script that kills Steam and reopens it.
.bat scripts can be edited using notepad.
(Right click the .bat file and go to Open With... > Notepad)
Say 'OK' to any prompts that come up. It should then open in notepad, or any text editor you have chosen.
Save your batch file in the same folder as the shortcut. You may remove the shortcut if you need.