Jump to content
Ketarin forum

Elevate CMD ("Run as Admin")


josh
 Share

Recommended Posts

Hi,

 

This is another simple command i use with Ketarin. It took me trouble to find this one :-) It's called elevate and it's bundled with NirCmd, read this post to know more about this tool. Syntax:

 

elevate [Program] {Command-Line Parameters} 
For Windows Vista/7/2008 only: Run a program with administrator rights. When the [Program] contains one or more space characters, you must put it in quotes. 

Examples: 
elevate notepad.exe 
elevate notepad.exe C:\Windows\System32\Drivers\etc\HOSTS 
elevate "c:\program files\my software\abc.exe" 

 

 

Using elevate with Ketarin (UAC will prompt you to accept or deny):

nircmd elevate cmd /c copy /y "{file}" "%ProgramFiles%"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.