RunAs command won't open Control Panel in limited account but works in admin account - why?

I am trying to familiarize myself with the runas command so I can do my IT work more efficiently.  I am experimenting at home on my windows xp pro machine that is part of a workgroup.  Right now, my issue is that when I try to run control panel or control admintools using the runas command, the cmd window pops up, asks me for my password, says it is attempting to open my choice, but never does.  The hourglass shows for a moment, then disappears.  I do have the secondary logon service running, it starts automatically, and I verified I can do this in the administrator account to see if my syntax was that far off.  I also opened the command prompt using the runas command.  I tried the same from within that window, and still control panel or administrative tools will not open.  Has anyone encountered this and found the problem?  If you could help me identify the problem I would greatly appreciate it.
BigdoggitAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
imitchieConnect With a Mentor Commented:
okay. to run control panel applets, locate the file *.msc in \windows\system32, right-click RunAs. that should work.
Special places : explorer.exe, Control Panels, Administrative Tools cannot be started from the command line from a limited user.  Runas cmd.exe will work, but that still doesn't get Control Panels going
0
 
imitchieCommented:
it's a special "folder" that's not really a folder, and not meant for "Run As". You can right click on things in the Start Menu but not Control Panels and Administrative Tools.  The GUI already knows that. Seems like the Command Line version doesn't quite get it
0
 
imitchieCommented:
as a matter of fact, even Explorer doesn't work. You can right-click on Explorer in Accessories, and Run As comes up, but I can't get that to work
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
BigdoggitAuthor Commented:
Damn - then runas is definitely misleading for me.  So I suppose I have to learn every single security executable.  Well, you have the points, out of curiosity, is there a way adjust security settings for files while logged in as a limited user and to open Local Security policy, Services, etc.?
0
 
BigdoggitAuthor Commented:
also, when running as a limited account, but opening cmd.exe as an administrator, I can't just type in control admintools like I can as administrator.  Is there a way to make this work for me while logged in as a limited user?
0
 
imitchieCommented:
when cmd.exe interacts with Windows, control goes back to Windows, so your normal account applies unfortunately

Usually, you find the shortcut and RunAs on it.
0
 
BigdoggitAuthor Commented:
I don't follow you with the shortcut thing - your saying create a shortcut with runas attached to it and then it works?
0
 
imitchieCommented:
find the EXE or a shortcut to the EXE.
You can right-click on it to use "Run As.."
0
 
imitchieCommented:
p/s - the Control Panel applets you are referring to are in
C:\WINDOWS\system32, with the names  *.msc

I forgot to also mention that whereas RunAs doesn't go from Admin->Limited, you can in fact go Limited->Admin. I know it works because I just tried it!

runas /user:administrator "Control Panel"

(I logged in as a limited user)
0
 
BigdoggitAuthor Commented:
okay, now that's my problem.  For some reason my system says it is attempting to start control panel, but doesn't actually start it.  what the hell?  I had read that I could do this and when I try it I can't.  Is there some setting that would prevent this from running properly?
0
 
BigdoggitAuthor Commented:
oh, wait - you mean right click and choose runas - but doing this from the command line doesn't, right?
0
 
imitchieCommented:
first off, are you currently logged in as administrator or limited user?

I rarely (never) use RunAs from the command line. I just find the shortcut/exe file and right-click, RunAs.
0
 
BigdoggitAuthor Commented:
logged in as a limited account.
0
 
BigdoggitAuthor Commented:
okay, well, if I open a command prompt window into administrator from a limited account, I can type in secpol.msc - I guess that's easy too, of course it isn't that hard to navigate tot he executable.  But I can't open control panel by typing it in a command prompt window running as an administrator or just typing the runas command.
0
 
BigdoggitAuthor Commented:
where is control panel located at? in what folder?
0
 
BigdoggitAuthor Commented:
you are right.  I was playing some more too, and what I found is I have to start a command prompt from the limited user account with administrative privileges.  Then I can start any of the .msc, .exe, or .cpl tools from then and they retain their administrative privileges.  I suppose what it comes down to is that I can't use the graphical interface of control panel to run these tools while logged in as a limited account, I will just have to memorize their file names and/or locations.  I can do that.  Would have been easier the other way, but hell, this is Windows.  Sometimes I forget (still, the point is we have a solution)  Thanks for your help - it is great to bounce ideas off someone and you helped push me in the right direction.  Rock on imitchie!
0
 
BigdoggitAuthor Commented:
He did exactly what needed to be done - I also noted the other half that I will use on the job, but wouldn't have gotten there alone.
0
 
WallsyCommented:
Actually, the problem is that control panel is just explorer. You can run a .cpl file directly from an elevated command prompt, or an .msc, but not control.exe. It just fires up explorer.exe - and as it's already running you can't start another instance.

There is a way around it - when logged on as an administrator, open an explorer window and from the Tools menu, Folder Options choose the View tab and in the Advanced box tick the "Launch folder options in a separate process" option. Then you can start more than one instance of explorer.exe and they can be running as different users.

HTH,

Wallsy
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.

All Courses

From novice to tech pro — start learning today.