how to start networking from command line

  • Thread starter Thread starter GS
  • Start date Start date
G

GS

instead of clicking on the networking on the start menu or in the control
panel, how can I start changing property of a network connection?

neither network.msc nor network.cpl works

I don't want to log off and login as the administrator account directly as
I will have the firewall software slow down the PC in the remote connection
mode. the fw is ok as Long as I have login session in place from console
and taken over by remote connection but login initiated by remote connection
will cause the fw to consume excessive high amounts of CPU
 
Try typing: ncpa.cpl and hit Enter.

ncpa.cpl is Network Connections.

There ain't no network.msc nor network.cpl

Also works in the Run command.

Start | Run | Type: ncpa.cpl | Click OK

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
thank you. however, it did not work, it just brought up explorer with c:\ as
the address. I am running as a local administrator in cmd prompt. the
login user is just a limited Up user.in a 2003 domain.

OS: Xp pro with latest update
 
command prompt initiated from the login ID directly does allow control
ncpa.cpl to work as intended but no power to change
on the other hand when running as administrator in command prompt would only
give explorer pointing to c:\


Strange
 
also tried
%windir%\system32\control.exe netcpl.cpl

nothing came up. I look at the list from
http://support.microsoft.com/kb/192806
I can't see anything else I even tried dropping cpl before the .cpl or
replace it with sys. no joy so far

just for curiosity, I tried in windows 2000 pro PC, same thing happens, no
deviation of behaviour.

MS must have clamped down the OS since then
 
netcpl.cpl does not exist. inetcpl.cpl is Internet Properties.

Start | Run | Type: ncpa.cpl | Click OK should open Network
Connections.

Typing: ncpa.cpl in a command prompt and hitting Enter should open
Network Connections.

If typing just ncpa.cpl in the Run command or the command prompt does not
work, try...

%windir%\system32\ncpa.cpl

If that works, then your PATH is screwed up.

The PATH is used by both the Run command and the command prompt.

Open a command prompt, type: path and hit Enter.

You may have more, but these are a minimum...

C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

See this.

Why don't my commands work?
http://internet.cybermesa.com/~bstewart/cmdprompt.html#6

Bill Stewart has written a small program called FIXPATH that attempts to fix
these problems.

FIXPATH
http://internet.cybermesa.com/~bstewart/files/fixpath2.zip

If you want to get complicated...

This pasted in Start | Run
ncpa.cpl
opens Network Connections.

This pasted in a command prompt
ncpa.cpl
opens Network Connections.

This pasted in Start | Run
control ncpa.cpl
opens Network Connections.

This pasted in a command prompt
control ncpa.cpl
opens Network Connections.

This pasted in Start | Run
control.exe ncpa.cpl
opens Network Connections.

This pasted in a command prompt
control.exe ncpa.cpl
opens Network Connections.

This pasted in Start | Run
%windir%\system32\ncpa.cpl
opens Network Connections.

This pasted in a command prompt
%windir%\system32\ncpa.cpl
opens Network Connections.

This pasted in Start | Run
%windir%\system32\control.exe ncpa.cpl
opens Network Connections.

This pasted in a command prompt
%windir%\system32\control.exe ncpa.cpl
opens Network Connections.

This pasted in Start | Run
RUNDLL32 SHELL32.DLL,Control_RunDLL NCPA.CPL
opens Network Connections.

This pasted in a command prompt
RUNDLL32 SHELL32.DLL,Control_RunDLL NCPA.CPL
opens Network Connections.

{7007ACC7-3202-11D1-AAD2-00805FC1270E} is the CLSID for Network Connections.

{208D2C60-3AEA-1069-A2D7-08002B30309D} is the CLSID for My Network Places.

This pasted in Start | Run
file:///::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
opens Network Connections.

This pasted in Start | Run
explorer ::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
opens Network Connections.

This pasted in a command prompt
explorer ::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
opens Network Connections.

This pasted in Start | Run
Explorer.exe
/e,/root,::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2
-00805FC1270E}
opens Network Connections.

This pasted in a command prompt
Explorer.exe
/e,/root,::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2
-00805FC1270E}
opens Network Connections.

This pasted in Start | Run
file:///::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
opens Network Connections.

We can further complicate things.

{20D04FE0-3AEA-1069-A2D8-08002B30309D} is My Computer

{21EC2020-3AEA-1069-A2DD-08002B30309D} is Control Panel

This pasted in Start | Run
file:///::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
opens Network Connections.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
thank you Wes for all different variation.

those intended for command prompt. they all work from the plain limited user
command prompt.. However I have not found any that worked on the command
prompt initiated by
runas /user:administrator cmd.
They are either ignored or all those with file: prefix gets error "file: is
not recognized."

too bad

I even granted myself admin right temporarily still no luck in changing the
property from the system notification tray icon . looks like I am banging
my head on the wall.

Once upon a time I could start explorer etc from runas command or cmd prompt
initiated by runas. but on of the Microsoft update killed that


I guess I just Wait till Monday when I get in the office and reboot into
admin to fix up the networking.
 
I did get to network in a convoluted way but only to find out it is running
at limited user power: from the login session of a plain limited user
runas /user:administrator /profile cmd
In the resulting cmd prompt after entering the password
: ncpa.cpl

which give me explorer pointing to C:\
in the explorer windows' address bar, I enter

::{208D2C60-3AEA-1069-A2D7-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1
270E}
the I finally get the network connections explorer window

However this windows is not run at administrator power - as son as I open
property of a LAN connection I got:
 
I did miss this part from your first post...
I don't want to log off and login as the administrator

Myself, I do not see the point of running as anything less than an
Administrator. Even then XP thinks it owns the machine. ;-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Myself, I do not see the point of running as anything less than an
Administrator.

I should add unless in a business environment where you do not want people
messing around where you do not want them to or for children.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
I see your point. however since I am telling people at work to use either
power user or limited user, I can't justify myself using admin when I have
to deal with email. searching on the internet. One mistake to the wrong
site, the whole PC can be compromised if I am using admin


The way ms clamp down on use of admin just may back fire especially in the
executive level users They would demand admin power and gets it.without
security

I do use admin when I have to but only if I don't deal with email or
searches.
 
For windows Xp Pro,
using an twisted way, networking control with admin can be had.

runas /usr:administrator cmd
then run a batch file that has
@start "" /b "c:\Program Files\Internet Explorer\iexplore.exe" %*
in the ieexplore address bar enter control panel
click networking... voila, unfettered access


of course one has to be careful with this. going to wrong places can have
serious consequences
There is visible marking to let you know you are running as admin. Once
upon a time when one runs explorer, iexplore in a different context, one can
see the context in the title

I do think Ms went the wrong way of encouraging user to use less power for
day to day work by making difficult to elevate privileges
 
Back
Top