Devcon.exe for vista?

  • Thread starter Thread starter Mark Barnes (Jao)
  • Start date Start date
M

Mark Barnes (Jao)

Hi

I need to script the disabling of some devices in Vista but neither the
32bit nor 64bit version of devcon.exe downloadable from the site will work
with vista.

Anyone know of one that does work in vista, or any other CLI utility that
can disable and enable devices?

Cheers
 
Mark said:
Hi

I need to script the disabling of some devices in Vista but neither the
32bit nor 64bit version of devcon.exe downloadable from the site will work
with vista.

What exactly happens when it does not work?
Anyone know of one that does work in vista, or any other CLI utility that
can disable and enable devices?

Remember that devcon needs admin privileges, so under Vista
it must be run "As Administrator".


Uwe
 
Uwe Sieber said:
What exactly happens when it does not work?


I get a dialog box that says:-

"The version of this file is not compatible with the version of windows
you're running. Check your computers's system information to see whether you
need an x86 (32-bit) or x64 (64-bit) version of the program and then contact
the software publisher. [OK]"

I downloaded the devcon.exe files from here:-
http://support.microsoft.com/kb/311272
 
Mark said:
Uwe Sieber said:
What exactly happens when it does not work?


I get a dialog box that says:-

"The version of this file is not compatible with the version of windows
you're running. Check your computers's system information to see whether you
need an x86 (32-bit) or x64 (64-bit) version of the program and then contact
the software publisher. [OK]"

I downloaded the devcon.exe files from here:-
http://support.microsoft.com/kb/311272

The error message is generated by the IA64 version of
devcon which is found in the ia64 folder when started
on a x86 or AMD64 platform.
Check if you are really starting the devcon.exe from
the i386 folder.


Uwe
 
Hello Mark,

Neither version. IA64 is for Itanium processors, and the x86 one that is
downloadable will not work on x64 systems.
Do note that neither version is listed as being supported in Vista either.
 
Ok, cheers for that.

The follow question then is instead of using devcon.exe I am now trying to
use netsh to disable the network card instead. I'm using the command:-

netsh interface set interface "local area connection" disabled

To try and do this, but am met with a:-

An interface with this name is not registered with the router.

Message. I go into network properties and see "Local Area Connection"
sitting there. Anyone got any ideas?
 
Mark Barnes (Jao) said:
Ok, cheers for that.

The follow question then is instead of using devcon.exe I am now trying to
use netsh to disable the network card instead. I'm using the command:-

netsh interface set interface "local area connection" disabled

To try and do this, but am met with a:-

An interface with this name is not registered with the router.

Message. I go into network properties and see "Local Area Connection"
sitting there. Anyone got any ideas?

LAN interfaces can't be disabled like this.
Please ask in microsoft.public.windows.vista.networking_sharing
hopefully there you'll get a better explanation.

--PA
 
Mark Barnes (Jao) said:
Ok, cheers for that.

The follow question then is instead of using devcon.exe I am now trying to
use netsh to disable the network card instead. I'm using the command:-

netsh interface set interface "local area connection" disabled

To try and do this, but am met with a:-

An interface with this name is not registered with the router.

Message. I go into network properties and see "Local Area Connection"
sitting there. Anyone got any ideas?

LAN interfaces can't be disabled like this.
Please ask in microsoft.public.windows.vista.networking_sharing
hopefully there you'll get a better explanation.

--PA
 
Back
Top