Batch script to automatically uninstall and Reinstall a driver

  1.    #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 ComputerSystem Spec

  2.    #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 ComputerSystem Spec

  3.    #3

    Kyhi said: View Post
    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: View Post
    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 ComputerSystem Spec


 

Related Threads
Automatically Run Batch Script in Installation and Upgrade
Hi everyone When the windows installation is finished, automatically run batch script. How can I do that? Thanks ;)
I'm looking for a batch script that can: Pull the single row taskbar to a 3 row taskbar and lock it in place in its default location (bottom). Change the time format at the bottom right corner from default to have e.g. "2:00 AM" in the first...
Firstly thank you for even clicking on this thread as I understand that this probably isn't meant to be here. The scenario is that I'm trying to write a script that incorporates the result of a ping to an IP and then based on the result do...
I've looked all over and was wondering if I could get some help here. I work where there are public machines, and we tell people NOT to use Internet Explorer, BUT only 10% of people actually adhere to this. That's life. I've noticed that with...
Batch script question in General Support
Hello, I want make a batch script to delete a spefic folder on the C disk, but how can I get only that spefic folder? I got this: FOR /D %%p IN ("C:\USERS\%USERNAME%\Downloads\*.*") DO rmdir "%%p" /s /q cd C:\USERS\%USERNAME%\Downloads\ del...
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 11:36.
Find Us