Managing network connections using second logon

G

Guest

Hi!
I cannot invoke Network Connections control panel using second logon: in
place of correct window I get explorer window with content of system
partition (in my case it is C:\). Of course I haven't any problem with
invoking mentioned control panel in "normal" way, but it need me to relog as
a administrator. For invoking the control panel I tested a few ways:
1. in cmd.exe
- runas /user:myuser ncpa.cpl
- runas /user:myuser "control ncpa.cpl"
2. in cmd.exe running in administrator account context
- ncpa.cpl
- control ncpa.cpl

Anybody has any idea why running ncpa.cpl through runas gives explorer
window, and how to manage (add, delete, change) network connections using
second logon.
 
J

John John

Don't you bother reading replies to your previous posts before
reposting, or was the answer that I gave you this morning (8 hours ago)
not to your liking? In cas you can't find it here is copy and paste:


The ncpa.cpl doesn't work like other Control Panel extensions, it's just
a stub that calls an API to run the item through Explorer.exe. Even
when using RunAs, Explorer.exe always runs in the security context of
the logged on user so ncpa.cpl fails. There are ways around that, you
could completely kill Explorer.exe and then start it under a different
security context or you can change Explorer.exe default settings so that
it launches folder windows in a separate process. I'm not so sure that
I would want it running in that manner all the time but it is easy to
toggle back and forth.

Another way would be to start Internet Explorer under the elevated
security context with RunAs then simply enter the command in the IE
Address Bar: %systemroot%\SYSTEM32\ncpa.cpl

Aaron Margosis has written a series of articles about working with RunAs
and he has addressed the particular issues about Explorer.exe and
ncpa.cpl here:
http://blogs.msdn.com/aaron_margosis/archive/2004/07/07/175488.aspx

John
 
L

lukasz.duczmal

I hope you receive my last answer.
So blogs which you mentioned was very helpful for me - thank you very
much
 
J

John John

You're welcome. I see no other posts from you here. The Web Board is
having problems, many users report not being able to see posts.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top