XP Use Alternate credentials to Enable Disable a Network connection

IND MIS
IND MIS used Ask the Experts™
on
Is there a way in  XP to Use Alternate credentials to Enable/Disable a Network connection?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You can do it from a command prompt by opening the command line as administrator or other user.

Author

Commented:
Precifijo,
Helpful, but please provide more detail.
Most Valuable Expert 2011
Top Expert 2011
Commented:
Skip to the last line for the details pertaining to your situation......The DevCon command-line utility functions as an alternative to Device Managerhttp://support.microsoft.com/kb/311272/Don know how many different network cards you have in your environment, but this might take some tweaking........Actually, Devcon disable only works locally, so you would need to use psexcec to opena  remote command shell and then use the devcon command....psexec \\remotepc -c devcon disable =net pci\ven*Just put a copy of Devcon in your folder launching PSExec from....For your purpose though..... Start c:\Windows\System32\cmd.exe by "SHIFT+Right Clicking">Run As>, and enter your credentials. Then paste/enter the following.....devcon disable =net pci\ven*
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Most Valuable Expert 2011
Top Expert 2011

Commented:
Also, the reason I suggested the above, is because ncpa.cpl doesnt work well with RunAs.....

ncpa.cpl under limited user
http://www.computing.net/answers/windows-xp/ncpacpl-under-limited-user/144563.html

has a link to the following....

RunAs with Explorer
http://blogs.msdn.com/b/aaron_margosis/archive/2004/07/07/175488.aspx
Sorry, I'm too late John6767 beat me to the details...  however , if you start command prompt as administrator (or other user) by right clicking a command prompt and clicking on "run as" and then you just "start compmgmt.msc"  you can disable the network card from there.

Author

Commented:
That was the ticket.
Thanks!
the computer management console (or anything you start from a command prompt running as admin or other user) will ran as administrator/other user.
oops, just saw your comment.. I see you're all set. I'm too slow of a typer I guess. :-s
no credit at all for even mentioning the command line approach first? ... sorry, normally I wouldn't complain, but I'm trying to keep my account open :-s

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial