hostkillo.blogg.se

Driver restore software removal
Driver restore software removal








driver restore software removal
  1. Driver restore software removal how to#
  2. Driver restore software removal drivers#

After its completion, restart your computer and check if everything works properly and, if necessary, reinstall the appropriate driver. Next run the script: C:\PS\drv_cleanup.ps1 Open the elevated PowerShell console and allow to execute the unsigned scripts: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

Driver restore software removal drivers#

In case you need to show the list of unused drivers only, comment Invoke-Expression (add a # character before the command Invoke-Expression -Command “pnputil.exe -d $Name)Ĭopy the code of the script and save it to file drv_cleanup.ps1 (to the folder c:\ps). Invoke-Expression -Command "pnputil.exe -d $Name" Write-Host "pnputil.exe -d $Name" -ForegroundColor Yellow Write-Host "deleting $Name" -ForegroundColor Yellow Write-Host "Drivers to remove" -ForegroundColor Red 'theClassName' | sort date -Descending | select -Skip 1 The script is as follows: $dismOut = dism /online /get-drivers In some cases, if some driver is not removed, add the -f switch. From the resulting list we will exclude the most recent version for each driver.Īfter that, remove remaining drivers using pnputil utility. Then parse the output using PowerShell, select the driver duplicates and sort them by date. We will get the list of third-party drivers installed in the system by using the DISM command: dism /online /get-drivers Verify that the restore point was created successfully using the command: Get-ComputerRestorePoint To do this, run the command: Checkpoint-Computer -Description “PointBeforeDeleteUnusedDrivers”

driver restore software removal

Also it is recommended to create a restore point.In case of problems, you can always re-install properly driver. Before running the script, make sure you have the current drivers for the video card, printer and other devices, that are constantly in use.To run this script you need to update your PowerShell version to Windows Management Framework 1 (or at least WMF4).

driver restore software removal

Warning! In any case don’t delete any files or folders manually from the directory FileRepository! To clear the contents of folder FileRepository from the outdated drivers, we prepared a small PowerShell script, that removes all duplicates drivers except the drivers with the latest date. Warning In any case don’t delete any files or folders manually from the directory FileRepository.

Driver restore software removal how to#

How to Remove Old and Unused Drivers from Driver Store? How to Remove Old and Unused Drivers from Driver Store To clear the contents of folder FileRepository from the outdated drivers, we prepared a small PowerShell script, that removes all duplicates drivers except the drivers with the latest date.










Driver restore software removal