Batch script to automatically uninstall and Reinstall a driver


  1. Posts : 2
    Windows 10
       #1

    Batch script to automatically uninstall and Reinstall a driver


    For some strange reason I've had a faulty external Seagate 8TB driver/HDD for the last year

    The problem is this: everytime I reboot the computer, the HDD is not automatically recognized so I have to do this

    1. Open Device Manager
    2. Remove the USB attached SCSI mass storage device driver (uninstall the device)
    3. Search for new Devices
    4. And it automatically appears adequately and is correctly recognized by the system as a HDD

    I have to do this every single reboot. I've could try to solve it, but I think it is unsolvable. I've tried like a dozen of times, reading in forums and Microsoft support and it has turned impossible. So I accept that I have just to keep doing this until I format or change the drive

    So now I have two options:
    1. Format PC and pray for it to solve: not an option because i hate formatting and having to restore everything
    2. Create a batch script, that do exactly what I do, but with a shortcut in the Desktop to make it extremely simple...

    I've been digging but could not find the exact commands that do exactly what I do. So I'm asking for some help at least trying to determine which commands will make the trick.

    Thanks in advance.
      My Computer

  2. Kyhi's Avatar
    Posts : 3,112
    Windows 3.1 to Windows 10
       #2

    after you remove the offending driver and select the correct driver...
    Go into control panel > select System
    select System Protection - from Left Pane
    select > Hardware Tab
    select > Device Installation Settings
    Select > No, let me choose
    Save Changes

    This will prevent Windows from reinstalling the offending driver
      My Computer


  3. Posts : 2
    Windows 10
    Thread Starter
       #3

    Kyhi said:
    after you remove the offending driver and select the correct driver...
    Go into control panel > select System
    select System Protection - from Left Pane
    select > Hardware Tab
    select > Device Installation Settings
    Select > No, let me choose
    Save Changes

    This will prevent Windows from reinstalling the offending driver
    Thanks: I have not tried this, I'm going to test it before doing the script

    - - - Updated - - -

    Kyhi said:
    after you remove the offending driver and select the correct driver...
    Go into control panel > select System
    select System Protection - from Left Pane
    select > Hardware Tab
    select > Device Installation Settings
    Select > No, let me choose
    Save Changes

    This will prevent Windows from reinstalling the offending driver
    Today I tested and it did not work this solution

    Same problem. So back to the original plan: the batch script.
      My Computer


 

Related Threads
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 05:36.
Find Us




Windows 10 Forums