Share via

How to make a batch file to run a program as administrator then run that batch file in cmd?

Anonymous
2013-10-29T00:50:05+00:00

My school doesn't allow administrator programs to be run. But there is a way that I can get into cmd, I was wondering how I can make a batch file to run a file as administrator.

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Anonymous
    2013-10-30T06:20:28+00:00

    I already have the administrator password. The servers restrict any kind of administrator access. Even the administrators can't get on. They told me to attempt to fix it. That is why I need admin privileges. Is there any way I can run an administrator program without being on administrator privileges.  I might have miscommunicated something. 

    I suggest you become more specific and report

    • What exactly you are trying to do
    • How you are doing it
    • What error message you get (verbatim, please!)

    Did you try the standard method of elevating your privileges via the program's context menu?

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-10-29T22:17:40+00:00

    You can't make a batch file to run a program as administrator?

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2013-10-29T06:42:06+00:00

    My school doesn't allow administrator programs to be run. But there is a way that I can get into cmd, I was wondering how I can make a batch file to run a file as administrator.

    If your school has implemented a policy for users not to run cmd.exe and not to run as administrators then you cannot defy this policy.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2013-10-29T20:49:35+00:00

    I can run cmd.exe. I just need to run a program as administrator from it.

    The ability to run the command processor does not grant you elevated rights. You need an admin account & password to do this, e.g. with runas.exe:

    runas  /user:administrator  cmd.exe

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2013-10-29T20:27:41+00:00

    I can run cmd.exe. I just need to run a program as administrator from it.

    Was this answer helpful?

    0 comments No comments