WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Disable Device


Question:

We have a need here to stop all local NICs when the user launches their RAS connection. We have code to find all of the NICs, and to identify the service that is running to support the NIC. But wntSvcControl cannot stop a driver service, or at least this driver service.

Anyone have any code to disable the NIC devices? We want this to be silent code, so we can't use SendKeys or Windows Control to manipulate that interface.

Any and all help is appreciated.

Answer:

You might try using the devcon.exe utility. http://msdn.microsoft.com/en-us/library/windows/hardware/ff544707(v=vs.85).aspx
Article ID:   W15968
File Created: 2014:04:03:10:15:38
Last Updated: 2014:04:03:10:15:38