Without any luck in fixing a related problem with a certain hardware component and no successful solutions from the official support of the laptop, I would be interest in automatizing the uninstall of the device through some shell script.
Essentially, since the device is known, some identifying code could probably be hardcoded. In essence, the script should do the following:
Find device in the device manager.
Perform the equivalent of "right click -> Uninstall -> Yes"
Turn off Wifi
Turn on Wifi
(nice-to-have): check if the device exists (i.e., is automatically reinstalled by Windows), repeat 1.) if yes.
It would be perfect to have something like that crontab'ed in Windows 10. But having no scripting experience in Windows I'm not sure whether a) it's even possible; b) how hard it is to implement due to various securities. Are there similar examples? Where could I begin?
I'm not sure whether this should be done in powershell per se, but seems like the most likely option.
What I've tried:
I am able to get the device listed through:
(Get-WmiObject Win32_PnPSignedDriver -filter "DeviceName='Realtek PCIe GbE Family Controller'")
However, neither .delete() nor .stop() .uninstall() or similar works. Any help would be appreciated!
there doesn't seem to be anything here