pnputil /add-driver <path_to_cab_or_inf> /install :
expand driver.cab -F:* C:\ExtractedDrivers This paper serves as a complete reference for system administrators, support engineers, and power users seeking to master driver installation from CAB files in Windows environments. install drivers from cab file
:
Expand-Archive -Path .\driver.cab -DestinationPath .\extracted Add-WindowsDriver -Path C:\ -Driver .\extracted -Recurse For online installation (running OS), pnputil is simpler; PowerShell is more useful for offline images. When servicing an offline Windows image (WIM, VHD, or running OS offline): pnputil /add-driver <
# Install all CAB files in a folder and subfolders Get-ChildItem -Path "C:\DriverRepo" -Filter *.cab -Recurse | ForEach-Object Write-Host "Installing $($_.FullName)" & pnputil /add-driver $_.FullName /install if ($LASTEXITCODE -ne 0) Write-Error "Failed: $($_.FullName)" pnputil is simpler