The How-To Geek Forums Have Migrated to Discourse


How-To Geek Forums / Windows Vista

Set Privilege Level from command-line

(3 posts)
  • Started 8 years ago by gaspared
  • Latest reply from gaspared
  • Topic Viewed 2141 times

PARTNER SPOTLIGHT

Recommended: Clean Your PC the Easy Way with CleanMyPC

If you want to clean up your PC the easy way, CleanMyPC is a great tool to get the job done easily, and it will even keep your computer clean automatically.

Unlike the competition, it also includes great tools like a Clean Uninstaller, to get rid of applications and clean up the junk that they leave behind. All with the click of a button.

Download CleanMyPC for Free Today

Posted yesterday 
Top
gaspared
Posts: 2

Is it possible to set the privilege level of an executable file to "Run this program as an administrator" from command-line or a script? I'd like to do this during the installation of my software. Thanks

Edoardo

Posted 8 years ago
Top
 
mysticgeek
Posts: 0

Are you looking at running executables in the command line using the "RUNAS" command?

http://www.microsoft.com/resou.....x?mfr=true

Posted 8 years ago
Top
 
gaspared
Posts: 2

No, I'd like to set the property directly on the file. By now I inserted the manifest file in my executable, and perhaps it is a better solution. I beg your pardon for my English.

Posted 8 years ago
Top
 



Topic Closed

This topic has been closed to new replies.