Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remote excute ncpa.cpl launches windows explorer

347 views
Skip to first unread message

chi...@pactiv.com

unread,
Jul 26, 2004, 3:56:12 PM7/26/04
to
When we launch the netwok and dial up connections control panel (ncpa.cpl)
via Remote Execute, all it does is open windows explorer. OS is W2K, ZfD
4.01, with really old agents. The same thing happens outside of ZEN, if
you try to open this cpl using RunAs. Does anyone have a solution for
this bahavior?

Thanks,
Caren

Craig Wilson

unread,
Jul 26, 2004, 6:08:47 PM7/26/04
to
Have you tried launching the specific sub applets inside of NCPA.CPL?
I've seen this behavior with Add/Remove Printer's Applet. I can call the Add
Printers Sub-Applet successfully, however.

Would it be acceptable to launch the applet remotely if the solution involved
running it as the logged on user, who may have no rights?


chi...@pactiv.com wrote:

--
Craig Wilson
CNE3, 4, 5 - MCSE - CCNA
NSC Sysop (http://support.novell.com/forums/)

Tech Writer - http://www.ithowto.com
(I Peter 4:10)


Marcus Breiden

unread,
Jul 26, 2004, 6:27:56 PM7/26/04
to
On Mon, 26 Jul 2004 19:56:12 GMT, chi...@pactiv.com wrote:

> Does anyone have a solution for
> this bahavior?

take a look at

BatchCPL = You can run a Control Panel applet from the command-line by
using rundll32 shell32.dll,Control_RunDLL or control.exe followed by the
name of the .cpl. If you include the first part of the displayed name
followed by a number, you may be able to start the applet with the focus on
a specific tab.

Settings tab on Display properties: start control.exe desk.cpl,Display,3
Advanced tab on Internet properties: start rundll32
shell32.dll,Control_RunDLL inetcpl.cpl,Internet,5

http://www.mvps.org/vb/index2.html?tips/shellcpl.htm

from http://www.tburke.net/info/win2k/win2kinfo.htm
--

Marcus Breiden

Please change -- to - to mail me.
The content of this mail is my private and personal opinion.
http://www.edu-magic.net

chi...@pactiv.com

unread,
Jul 27, 2004, 10:38:40 AM7/27/04
to
I've tried a number of parameters with Remote Execute, including
RUNDLL32 SHELL32.DLL,Control_RunDLL NCPA.CPL,@0,3

When I put this in the run command, it works fine, although it always
brings me to the main Network and Dial-up Connections window, not to the
properties page indicated by the @0,3. If I try it with Remote Execute
(or even with RunAs to elevate rights) it just opens Windows Explorer.
The vast majority of our PCs do not have rights to view or modify the
network / dial-up properties, so it is critical that Remote Execute works
with this cpl.

Thanks,
Caren

Marcus Breiden

unread,
Jul 27, 2004, 4:18:23 PM7/27/04
to
On Tue, 27 Jul 2004 14:38:40 GMT, chi...@pactiv.com wrote:

> If I try it with Remote Execute
> (or even with RunAs to elevate rights) it just opens Windows Explorer.

and it will do the same when you use runas /user:administrator "RUNDLL32
SHELL32.DLL,Control_RunDLL NCPA.CPL,@0,3"

so it looks like this is the problem...

so you should probably also look at the MS KB for some ideas...

Craig Wilson

unread,
Jul 27, 2004, 10:08:39 PM7/27/04
to
It's not likely you will ever get Remote Execute to work with this.
I would look at PSEXEC from http://www.sysinternals.com
It has an option to load a profile for use by a launched process.
This often enables processes that fail over to explorer to work.

chi...@pactiv.com wrote:

--

0 new messages