batch file permission

Posted on 2007-08-09
Medium Priority
Last Modified: 2010-04-16
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?

Question by:chaochenga

Assisted Solution

JohnDemerjian earned 400 total points
ID: 19662215

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

Accepted Solution

SteveGTR earned 1600 total points
ID: 19663056
You could add it to the group policy on the machine:


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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question