驅動下載

PowerShell 匯入匯出驅動程式

https://windowsloop.com/powershell-command-to-backup-drivers/


Export-WindowsDriver -Online -Destination <備份資料夾>


powershell Export-WindowsDriver -Online -Destination <備份資料夾>

備份驅動

dism /online /export-driver /destination: "C:\DriversBackup"


pnputil /export-driver * D:\DriverBackup


https://woshub.com/how-to-export-drivers-using-powershell-in-windows-8-1-u1/


匯入驅動

https://stackoverflow.com/questions/40179884/adding-inf-drivers-using-powershell-possible


Get-ChildItem <備份資料夾> -Recurse -Filter "*inf" | ForEach-Object { PNPUtil.exe /add-driver $_.FullName /install }


pnputil.exe /add-driver C:\export-drivers\*.inf /subdirs /install

顯示目前 PS 版本

$PSVersionTable.PSVersio