Run an application as admin or another user

Every now and then, you run across applications that won’t launch without admin privileges, but you can’t give the user admin privileges (like on an RDS Server).

Here’s a quick and easy way around this-

For my example, I’ll be modifying my Watchguard SSL VPN client application to run as user appadmin.

Then, create a shortcut for the application (or change the current shortcut) to have the target:

runas.png

Runas /savecred /user:Domain\appadmin “C:\Program Files\path_to.exe”

When launching for the first time, you’ll be prompted to enter the associated password. From there forwad it will be saved.

prompt.png

Enter the password and hit enter.

If you open up Task Manager, Details and find your process, you’ll see it’s running as the admin/other user.

details.png

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s