• 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.
0
PhillipsPlastics
Asked:
PhillipsPlastics
1 Solution
 
DamjanCommented:
try
runas /user:computername\username "control appwiz.cpl"
0
 
davorinCommented:
Strange.
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.
0
 
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.
0
 
arnoldCommented:
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?
0
 
arnoldCommented:
oh runas /user:installuser cmd
in the new elevated rights user@ cmd run appwiz.cpl
0
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