Question: How do I run a batch file from another batch file with administrator rights?

I have tried the [RUNAS](http://ss64.com/nt/runas.html) command, but it requires the administrator password.

I am searching for an alternative for running a batch file by right clicking on it and running as an administrator. I want to automate it from another batch file.

Answer: 
On Windows 7:

1. Create a shortcut to that batch file
2. Right click on that shortcut file and choose *Properties*
3. Click the `Advanced` button to find a checkbox for running as administrator

**Check the screenshot below**

![Screenshot](https://i.stack.imgur.com/ZFldW.png)
Runas.exe won't work here. You can use VBScript to invoke the "Run as Administrator" shell verb. The Elevation Powertoys contain a batchfile that allows you to invoke an elevated command:

`elevate`*`cmd.exe`*

<http://blogs.technet.com/b/elevationpowertoys/>