My error. As you noticed! The batch window closes immediately after the commands run so there's no time to see the output! To remedy this, you can simply add the
pause command at end of each batch file so the script pauses window won’t close till you type any key
1. Output from first batch file to display filters
When you run this display current filters command you see
Class filters unchanged. followed by the filters found (e.g.
LVUSBSta when the Logitech filter is still being applied)
2. Output from second batch file to remove the Logitech filter
The first output line is either
Class filters changed. Class devices must be restarted for changes to take effect. if the command succeeded and change applied or
devcon failed. if the command fails (e.g. the filter wasn't there to begin with).
You then see the list of filters that apply. So if you see any empty list with no filters displayed here is a good thing.
The device must be restarted for the change to take affect. So I included a restart command in the batch file
Now a reboot would also do a restart
but i'm not sure if the Logitech driver if it's
still installed at time of reboot it
may also try and put the filter right back! (you may want to test this out first to see if it reappears after reboot) So you may need to play with the order in which you do things: as to removing the filter, uninstalling the Logitech driver, then reboot. Or maybe uninstalling Logitech driver first, then removing filter, then reboot.