POC to fast prototyping to disable and enable devices.
- DeviceDriverNetshService (uses netsh.exe)
- DeviceDriverrWmiService (uses Windows Management Instrumentation Win32_NetworkAdapter in quering)
- DeviceDriverSystemDeviceManager (uses Windows Management Instrumentation Win32_PnPEntity in quering)
private INetworkDriverServiceManager deviceManager;
deviceManager = new DeviceDriverServiceManager();
deviceManager.RegisterService("Network Wmi Driver", new DeviceDriverrWmiService());
deviceManager.RegisterService("Network Nets Driver", new DeviceDriverNetshService());
deviceManager.RegisterService("System Device management Driver", new DeviceDriverSystemDeviceManagerService());
private INetworkDriverServiceManager deviceManager;
deviceManager.GetServiceNames();
private INetworkDriverServiceManager deviceManager;
deviceManager.GetServiceNames();
deviceManager.GetService("Network Wmi Driver");
Returns list of devicenames available
private INetworkDriverServiceManager deviceManager;
deviceManager.GetServiceNames();
deviceManager.GetService("Network Wmi Driver").getDeviceList();
private INetworkDriverServiceManager deviceManager;
deviceManager.GetServiceNames();
deviceManager.GetService("Network Wmi Driver").EnableDevice('Media teck wifi 6g etc');
private INetworkDriverServiceManager deviceManager;
deviceManager.GetServiceNames();
deviceManager.GetService("Network Wmi Driver").IsDeviceEnabled('Media teck wifi 6g etc');