Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

XP, Vista or Windows 7:

Is there a command to use the "switch user" feature, the same way there is one to lock the workstation?

share|improve this question

3 Answers 3

Is there a command to use the "switch user" feature,

You can connect to an existing session with tscon.


What I'd like to do is get to the "welcome screen",

Use tsdiscon.

If Fast User Switching is on, then simply locking the workstation* should display the Welcome Screen too.

* I hope you don't use rundll32 LockWorkStation.

share|improve this answer
    
Sorry about the delay. TSDISCON suits my purpose. –  user34049 Aug 10 '10 at 15:21
1  
Then choose that as answer :) –  kokbira May 10 '11 at 19:56

I believe it is possible, this article from Lifehacker explains how:

runas /user:*computer name\*account name explorer.exe
share|improve this answer
    
Thanks, but this only opens an Explorer window under the context of another user. I've used it many times. What I'd like to do is get to the "welcome screen", or even downright open a session under the other user's ID, with a single command (which I'd put in a shorcut in the quick-load toolbar). –  user34049 Apr 13 '10 at 15:31
1  
*computer name\* is unneccessary. –  grawity Apr 13 '10 at 15:41
    
"computername" is necessary to access another computer. about launching explorer, it is only 50% of the path... –  kokbira May 10 '11 at 19:56
1  
@kokbira Then Sam152 should change his answer to stipulate that is it unnecessary unless you are trying to run an instance of explorer.exe in the context of another account existing on another PC, though I note that the OP didn't state he wanted to do this with an account from another PC, in fact he didn't request anything to do with another instance of explorer.exe. –  user66001 Mar 7 '13 at 7:03
    
ok, but I'm talking about killing explorer before running it as another user. doing as @sam152 said will open only a new explorer window –  kokbira Mar 22 '13 at 11:55

all bad answers

tscon only works if you have a windows edition with the RDSH included

runas is clearly not what is asked for

rundll32 LockWorkStation is probably the best thing to use across the board

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.