Computing.Net > Forums > Windows 2000 > Run a batch file at login

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Run a batch file at login

Reply to Message Icon

Name: Kenao
Date: June 30, 2003 at 11:37:38 Pacific
OS: Win2k
CPU/Ram: P3/512
Comment:

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.




Sponsored Link
Ads by Google

Response Number 1
Name: marc2003
Date: June 30, 2003 at 11:44:28 Pacific
Reply:

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.


0

Response Number 2
Name: cardelo1
Date: June 30, 2003 at 12:02:10 Pacific
Reply:

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...


0

Response Number 3
Name: brendan115
Date: June 30, 2003 at 14:24:05 Pacific
Reply:

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!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Run a batch file at login

Auto Launching a Batch File www.computing.net/answers/windows-2000/auto-launching-a-batch-file/58650.html

Running a prog using a batch file www.computing.net/answers/windows-2000/running-a-prog-using-a-batch-file/50731.html

AT and local batch files? www.computing.net/answers/windows-2000/at-and-local-batch-files/24703.html