Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2025-06-25 08:05:37 Processing driver: KONICA MINOLTA Universal PCL
- 2025-06-25 08:05:37 PnPUtil:
- 2025-06-25 08:05:37 PnPUtil Exit Code:
- 2025-06-25 08:05:37 ERROR: Failed to add printer driver: KONICA MINOLTA Universal PCL - The specified driver does not exist in the driver store.
- 2025-06-25 08:05:37 Processing driver: SHARP MX-M565N PCL6
- 2025-06-25 08:05:37 PnPUtil:
- 2025-06-25 08:05:37 PnPUtil Exit Code:
- 2025-06-25 08:05:37 ERROR: Failed to add printer driver: SHARP MX-M565N PCL6 - The specified driver does not exist in the driver store.
- 2025-06-25 08:05:37 Processing driver: Lexmark Universal v2 XL
- 2025-06-25 08:05:37 PnPUtil:
- 2025-06-25 08:05:37 PnPUtil Exit Code:
- 2025-06-25 08:05:37 ERROR: Failed to add printer driver: Lexmark Universal v2 XL - The specified driver does not exist in the driver store.
- 2025-06-25 08:05:37 Processing driver: HP Universal Printing PCL 6 (v7.7.0)
- 2025-06-25 08:05:37 PnPUtil:
- 2025-06-25 08:05:37 PnPUtil Exit Code:
- 2025-06-25 08:05:37 ERROR: Failed to add printer driver: HP Universal Printing PCL 6 (v7.7.0) - The specified driver does not exist in the driver store.
- ----------
- #info is from the install.ps1 program
- $drivers = @{
- Konica = @{ Name = "KONICA MINOLTA Universal PCL"; Inf = "$staticDriverPath\Konica\KOAWVJ__.inf" }
- HP = @{ Name = "HP Universal Printing PCL 6 (v7.7.0)"; Inf = "$staticDriverPath\HP\hpcu335u.inf" }
- Sharp = @{ Name = "SHARP MX-M565N PCL6"; Inf = "$staticDriverPath\Sharp\ss0emenu.inf" }
- Lexmark = @{ Name = "Lexmark Universal v2 XL"; Inf = "$staticDriverPath\Lexmark\LMUD1p40.inf" }
- }
- foreach ($driver in $drivers.Values) {
- $name = $driver.Name
- $inf = $driver.Inf
- "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss") Processing driver: $name" | Out-File -FilePath $LogPath -Append -Encoding UTF8
- if (-not (Test-Path $inf)) {
- "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss") WARNING: INF file not found: $inf" | Out-File -FilePath $LogPath -Append -Encoding UTF8
- continue
- }
- # Stage driver with pnputil
- $pnputilOutput = pnputil /add-driver $inf /install 2>&1
- $pnputilOutput | ForEach-Object { "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss") PnPUtil: $_" | Out-File -FilePath $LogPath -Append -Encoding UTF8 }
- "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss") PnPUtil Exit Code: $LASTEXITCODE" | Out-File -FilePath $LogPath -Append -Encoding UTF8
- }
Advertisement
Add Comment
Please, Sign In to add comment