(Solved) - Make a batch file to run cmd as administrator(14 posts)
- View Accepted Answer
- Remove Solved Status
Well, check here, ON HOW TO DO THIS. This will open a COMMAND prompt that is running as Administrator and will run all the BAT file commands as an Administrator.
I think you can do the SAME thing by putting a link/shortcut (icon) for BAT file on your desktop and then Right Mouse Button on the icon and selecting RUN AS ADMINISTRATOR.
What I did was this:
1. Make a shortcut pointed to the command prompt (I named it Administrative Command Prompt)
2. Open the shortcut's properties and go to the Compatibility tab
3. Under the Privilege Level section, make sure the checkbox next to "Run this program as an administrator" is checked
But as I'm reading it, the op wants to click a batch file and it will run in cmd prompt in administrator mode. Apart from physically opening cmd prompt in Admin mode and entering the bat file name, I don't think that it is possible.
Well, after zs474's answer, there is a way, but not through normal methods.
It will be grayed out if one is running as Built in Administrator and gives themselves all privileges plus special permissions, ownerships, etc., etc..
That's what I do to keep the annoyances away. (lol) :) :)
EDIT: I do NOT recommend this method of Windows 7 operation.
This topic has been closed to new replies. Please create a new topic instead.