How to run a task on log-on for every Windows user

scheduled-taskwindows-xp

Whenever a user logs on to a Windows XP Machine, I want to run a batch script as them that adds network printers. How to do that?

Using the Scheduled Task Wizard, it looks like I'd have to add a scheduled task for every user manually.

Best Answer

Are the computers joined to a domain or are they using local accounts?

Domain controllers have built-in support for a logon script. There's tons of information out there on this and we'd need more information to guide you here. (What software is your DC running?) GPO is a better option if you are using a Windows Active Directory back end.

It can be done with local accounts, too. MS has a KB entry for it here: How to Assign a Logon Script to a Profile for a Local User