• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1036
  • Last Modified:

Running Add or Remove Programs When Remoted on a PC

My question is regarding how to run add or remove programs as a different user when remoted onto a PC. I am able to successfully open a command prompt as an administrator by using:
runas /user:AdminAccName cmd
After I enter the correct password and the command prompt pops up and i try to open add or remove programs by typing appwiz.cpl but it will open it as the user. I am wondering if there is anyway i can open it as an administrator without having to log off the user and log back in under the different account name.
 When i try to open it as a different user
When i type this in to try and open it under an administrator account name i receive that message, however when I simply type in appwiz.cpl it will open successfully.
I would like to know how to do this on both Windows 7 and XP.
1 Solution
runas /user:computername\username "control appwiz.cpl"
If I try first to open cmd with runas administrator it opens as administrator user. If in that command prompt I type appwiz.cpl it opens add/remove programs with the same username - as administrator. I can see rundll32.exe running with administrator credentials in task manager.
PhillipsPlasticsAuthor Commented:
Update: I am able to select a Run As option when holding shift and right clicking on Add or Remove programs in the Control Panel on an XP system, However I am not given that option on Windows 7.
after you elevate your rights (runas ) you can execute appwiz.cpl in the spawned command windows.

Could there be something else that prevents this user from running the command?
i.e. the user has no rights?
oh runas /user:installuser cmd
in the new elevated rights user@ cmd run appwiz.cpl
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now