- 02 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Installing a Package / Tracker as the Administrator when logged in as a user account
- Updated on 02 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
You would like to install the Package / Print Tracker through a login script but as Administrator.
The command you will need to run in the batch file is runas
Run As Different User
runas.exe
The RunAs program runs a program as a different user, requiring the correct domain, user name, and password. The user will be prompted for any required value that was not entered on the command line.
******* The Problem with runas *************
The RunAs program demands that you type the password manually. Why doesn't it accept a password on the command line?
This was a conscious decision. If it were possible to pass the password on the command line, people would start embedding passwords into batch files and logon scripts, which is laughably insecure.
In other words, the feature is missing to remove the temptation to use the feature insecurely.
******* The Solution *************
RunAs Professional is a substitute for Microsoft's command runas. RunAs Professional solves the problem that normal runas does not support the command line parameter password. Now you can use RunAs Professional to install software, use it in batch scripts and much more. If you use RunAs Professional you can start an application with other credentials without log off and log on. Some applications do not run very properly without admin rights. With RunAs Professional you can build crypted RAP - Files which includes the admin logon data and the path to your application. All data is stored with high encryption. Then just double-click on this file and the application will be launched with administrative rights - without entering password and username. It is possible to run RunAs Professional from the command line with a password argument. With RunAs Professional you could build crypted RAP files in wich all the logon data and the application to run is stored in. The files are crypted with AES, the well known symmetric algorithm. With a simple double-click you can run the application with other user rights. RunAs Professional is ideal for Helpdesk support and scripting. The usage of RunAs Professional is very wide so just try this powerful application!
The file is attached to the KB article.