Solved

Disabled Lan using Command prompt

Posted on 2013-06-12
4
408 Views
Last Modified: 2013-07-16
I want to disabled my Xp Lan connection using a batch file or Command prompt.

I used this code:

"netsh interface set interface  name = "Local Area Connection" admin = DISABLED "

but it gives error ------------

One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct syntax.

How can i solve this?
0
Comment
Question by:dynamicweb09
4 Comments
 
LVL 4

Assisted Solution

by:BAKADY
BAKADY earned 167 total points
ID: 39243648
maybe not the wisest answer, but have you look in the documentation?

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netsh.mspx?mfr=true
0
 
LVL 1

Author Comment

by:dynamicweb09
ID: 39243765
Thanks BAKADY

but its not working...........please give another solution for windows xp.
0
 
LVL 15

Assisted Solution

by:Rob Stone
Rob Stone earned 166 total points
ID: 39245909
Reading about it, there were issues with that command on XP.

You could try using this tool instead.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272

I've not used it so can't offer any more guidance on what syntax to use other than what is on the webpage.
0
 
LVL 69

Accepted Solution

by:
Qlemo earned 167 total points
ID: 39275381
XP netsh treats LAN connections as something you cannot disable. The help clearly talks about "WAN only" (meaning no WLAN or LAN).

Using DevCon, however, requires you to know the name of the installed driver. We can now go down a complicated route to get the necessary info (in a batch file):
@echo off
for /F "tokens=2*" %%M in (
  'reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkCards" /s ^| find "Description" '
) do devcon find PCI\* | find "%%N" | for /F "delims=:" %%A in ('more /e') do devcon disable "%%A"

Open in new window

0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question