Install win10 drivers from folder with Powershell and pnputil
When we want to install or update driver on our system, but our windows version does not support the latest .msi driver-package, this is very common in companies using (LTSC) versions, then we resort to force install with pnputil trhough powershell.
The Script has been tested on microsoft surface devices with windows ltsb and ltsc versions.
Windows 10 Enterprise LTSC:
- SurfacePro 4
- SurfacePro
- SurfacePro 6
- SurfacePro 7
Windows 10 Enterprise ltsb:
- SurfacePro 4
- SurfacePro
.ps1 : The Powershell-Script looks inside the extracted folder and chooses all the ".inf" files and then installs them with (pnputil)
.bat: Changes PowerShell execution policies for Windows computers with the help of "Execution-policy"
- Access a command prompt and execute :
msiexec /a drive:\filepath\to\MSI\file /qb TARGETDIR=drive:\filepath\to\target\folder
change your driver path on .ps1
$driverPath= @("drive:\your_extracted_folder\")
change the location of you .ps1
-File drive:\Your\Folder\SPt.ps1
You can execute like a normal user or admin
Give a ⭐ if this project helped you!