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'm trying to get the Task Scheduler to run a vbscript that sets default printers for individual users on a Server 2008 R2 RDS machine.

Unfortunately my only success so far is getting any logon to trigger the script for my own user. Does anyone know how to make the scheduler triger the script for each user as they log in?


share|improve this question
Seems like the kind of thing you'd want to do with GPOs and/or logon scripts... why are you using VB? And in any event, what account are you running the script as? If you're running it as your user, that would explain why it only works for your user. – HopelessN00b Jun 18 '12 at 20:20
up vote 0 down vote accepted

HopelessN00b was right that the script was only running for my user because of the task using my credentials. I was unaware that I could have the script run as a user group but once I figured that out I changed the running user to the Domain Users group and it worked for any user logging in. Although this problem was solved the project was scrapped in favor of a different solution. Thank you for your help though.

share|improve this answer

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.