PowerShell 匯入匯出驅動程式

PowerShell 匯入匯出驅動程式

匯出驅動

How to Backup Drivers Using PowerShell Command

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


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


匯入驅動

Adding .inf drivers using PowerShell, possible?

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


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


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


也可以透過裝置管理員匯入驅動