Hi, xing
You could use PnPUtil.exe and Timer to control the timespan
The command to disable and enable device(Program may require administrator privileges):
system("pnputil /disable-device your device instance ID
");
system("pnputil /enable-device your device instance ID
");
Instance id could be found from device manager:
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.