batch file permission

I have a batch file that runs when users log in.  The problem is the batch file only runs when administrator logs in.  I need to somehow change the file so it will run on the regular users as well.  Any idea?

Thanks!
chaochengaAsked:
Who is Participating?
 
SteveGTRConnect With a Mentor Commented:
You could add it to the group policy on the machine:

gpedit.msc

User Configurations --> Windows Settings --> Scripts --> Logon

Or maybe you could place a link to the batch file in:

C:\Documents and Settings\All Users\Start Menu\Programs\Startup
0
 
JohnDemerjianConnect With a Mentor Commented:
Hello

Use the "runas" command which is part of the Windows OS.  runas does not always work well, so there are runas replacements both for free and for purchase available on the Internet.  Google for "runas replacement".  This should work for you...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.