This script will delete unused drivers from c:/windows/system32/driverstore. Especially old NVIDIA driver versions accumulate and use up disk space.
You should create a backup before using pnputil /export-driver * e:/mybackuplocation
| for($i=0; $i -lt 100; $i++){ | |
| & pnputil /d oem$i.inf | |
| } |