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.
PhillipsPlasticsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DamjanCommented:
try
runas /user:computername\username "control appwiz.cpl"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.