Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have a task scheduler job that fires Selenium unit testing server and runs some tests. It takes some resources because it opens a lots of websites. Moreover the Selenium with Firefox Driver has a problem with properly testing websites when i use the option to run the task without the user being logged in. The purpose of the other user in Windows 7 is to handle the Selenium process and unit testing and at the end i can kill all processes of the unit testing. It's necessary because Selenium has problem with closing tasks properly (like Firefox, Flash etc.).

And i can not do it on my user account because i cant recognize what processes are mine (like my Firefox i have open now) and what are the one opened by Selenium. Moreover i don't want Firefox windows flashing me while i work on this user account.

So i created another user account on Windows 7 to handle the Selenium unit testing. It's ok, but i can not use the option "run it even if he is not logged in" because than Selenium unit testing does not work properly. So i need that the another user will be logged in and selenium task will be executed on this logged in account.

I have found that i can set one of accounts on Windows 7 to be the default login account. So now when i open Windows 7 i log in into my account properly without being required to pass the password.

But if i want Selenium unit testing to work i need to switch to the another account to log it in and than come back to mine.

I would like to automate the process by configuring the system to log in to the another user on its own without requiring me to do so.

How to acomplish this?

share|improve this question
Did you try granting 'log on as a service' privilege to the service account? – wondersz1 Mar 5 '13 at 8:46
You could have added this to your other question because now we know what you are trying to achieve. – tombull89 Mar 5 '13 at 8:53
@tombull89 The question you referred was closed. So i couldnt change it. wondersz1:no i didnt how to do this? – tomaszs Mar 5 '13 at 15:58
You could of edited it (AFAIK a closed question could still be edited) and then flagged for re-opening. – tombull89 Mar 5 '13 at 16:01
Right. You're supposed to edit your question after it's closed. – Michael Hampton Mar 5 '13 at 16:04

Your Answer


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

Browse other questions tagged or ask your own question.