batch file permission

Posted on 2007-08-09
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
    LVL 5

    Assisted Solution


    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

    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

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
    YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT ( The crux of this batch f…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now