Solved

Disabled Lan using Command prompt

Posted on 2013-06-12
4
412 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 70

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

630 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