Discussion Locked

use secondary logon (run as) in a script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know if it is possible to use the "run as" command in a script. I want to let users with limited rights install certain programs and thought this would be an easy way to elevate their rights temporarily.

5 replies

by miha.pihler

If you use RunAs you still have to manually enter the password. There is (unfortunately) no way around it.

I guess I could suggest you to use VBS (Visual Basic Scripts). You can ?hardcode? passwords in them but users will most likely be able to see the password.

Regards, Mike

by wburrows

One way around this is to repackage the install program as an .msi file. There is a lightweight version of Wininstall .msi repackager included with the server or workstation CD. You can then elevate the priviledges of the Windows installer servicein Group Policy (Computer Configuration\Administrative Templates\Windows Components\Windows Installer\Always install with elevated priviledges. Read the description to see the user portion which must also be enabled.) to allow users to install programs. It basically installs the .msi package with the localsystem account.

by slider32

I already read a bit about this, but my group policy already is set up to disable this feature. (msi installs are disabled) Thanks.

This discussion is closed to new replies.