Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I was wondering if anyone knew how to run at batch file when any user logs in. I tried to use Windows Task Scheduler but that only works for one specific user. Thanks for any help you can offer.

start, run type gpedit.msc, ok
drill down to
user configuration\windows settings\scripts logon logoff.
from there you can set a login script for all users. that's assuming your using 2k pro?
you will need to reboot for it to work.

We have software called Altiris Deployment Solution which allows us to do this type of thing. However, we have also used login scripts when it was necessary for multiple users to execute a batch file. You could also add a string value in the registry under HKLM - software - Microsoft - Windows - Current Version - Run
For the Value Data you could either add the location of the batch file, such as \\server\share\filename.bat ....or if the file is stored locally on each pc (eg. c:\winnt\temp) - for the Value Data you could type c:\winnt\temp\filename.bat
Of course, if you leave these entries under the Run key, they will run every single time ANYONE logs in. There are ways around that, but maybe this will give you some ideas...

if you have a plain old batch file you want to run to restore network connections such as mapped drives and printers you can put the file in the domain controllers netlogon folder. if this is a stand alone machine, or you don't want to mess with policies or just want a really simple way to run the batch file, you can put the file in the 'all users' programs\startup folder of the local machines start menu.
all of the other suggestions sound good also.good luck!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |