3

For example, I want to uninstall an application on a users PC whilst they are logged in, but they do not have the rights to do so in the "Add/remove Programs" application. Is it possible to use "Run as..." for Control Panel based applications so that I can open the application as an Administrator?

2 Answers 2

5

You can use the runas command.

runas /user:Administrator "control appwiz.cpl"

It will prompt for a password then launch Add/Remove Programs with Administrator's credentials. There are other control panel applets you might need to launch this way as well.

You can also hold shift while right-clicking the applets and most of them allow you to choose "Run As".

0

You can run it as Administrator using Powershell:

Start-Process "control.exe" -ArgumentList "appwiz.cpl" -Verb RunAs 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .