Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to be able to run a script (or hit a hotkey that runs a script) that automatically switches from the currently logged on user to another logged on user. Is it possible to do such a thing? I'm using Windows Server 2008 Enterprise Edition. If I need to switch quickly between users, it's annoying to have to hit Windows+L, then "Switch User," then the user account you want to switch to. Double-clicking a batch file or running a some kind of powershell command would be much more convenient. Thanks!

share|improve this question
I think this may actually be better suited to Stack Overflow, or even Server Fault. – jerryjvl Jul 17 '09 at 23:09
jerrjyl: I've talked with Jeff about these types of questions and scripting such as this is probably most suitable for SuperUser. If it was something more in depth and SysAdmin-related than just switching user accounts, it probably would have moved to ServerFault. As it stands now the question will stay here. – TheTXI Jul 17 '09 at 23:11
TheTXI: might be worth adding something about this to the main FAQ page to avoid a lot of needless reporting? – jerryjvl Jul 18 '09 at 1:02
up vote 3 down vote accepted

Check out this post - it looks like it would work in Server 2008 as well.

share|improve this answer
Not bad! I can't specify a particular user to automatically switch to, but at least this bypasses having to click the "Switch User" button. Once I get 15 rep, I'll upvote :) – Pwninstein Jul 17 '09 at 23:58

Your Answer


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.