SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Windows Vista

Set Privilege Level from command-line

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

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 6 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 6 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 6 years ago
Top
 



Topic Closed

This topic has been closed to new replies.