Guest User

Untitled

a guest
Jun 25th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2025-06-25 08:05:37 Processing driver: KONICA MINOLTA Universal PCL
  2. 2025-06-25 08:05:37 PnPUtil:
  3. 2025-06-25 08:05:37 PnPUtil Exit Code:
  4. 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.
  5. 2025-06-25 08:05:37 Processing driver: SHARP MX-M565N PCL6
  6. 2025-06-25 08:05:37 PnPUtil:
  7. 2025-06-25 08:05:37 PnPUtil Exit Code:
  8. 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.
  9. 2025-06-25 08:05:37 Processing driver: Lexmark Universal v2 XL
  10. 2025-06-25 08:05:37 PnPUtil:
  11. 2025-06-25 08:05:37 PnPUtil Exit Code:
  12. 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.
  13. 2025-06-25 08:05:37 Processing driver: HP Universal Printing PCL 6 (v7.7.0)
  14. 2025-06-25 08:05:37 PnPUtil:
  15. 2025-06-25 08:05:37 PnPUtil Exit Code:
  16. 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.
  17. ----------
  18. #info is from the install.ps1 program
  19.  
  20.  
  21. $drivers = @{
  22.     Konica  = @{ Name = "KONICA MINOLTA Universal PCL"; Inf = "$staticDriverPath\Konica\KOAWVJ__.inf" }
  23.     HP      = @{ Name = "HP Universal Printing PCL 6 (v7.7.0)"; Inf = "$staticDriverPath\HP\hpcu335u.inf" }
  24.     Sharp   = @{ Name = "SHARP MX-M565N PCL6"; Inf = "$staticDriverPath\Sharp\ss0emenu.inf" }
  25.     Lexmark = @{ Name = "Lexmark Universal v2 XL"; Inf = "$staticDriverPath\Lexmark\LMUD1p40.inf" }
  26. }
  27. foreach ($driver in $drivers.Values) {
  28.     $name = $driver.Name
  29.     $inf  = $driver.Inf
  30.  
  31.     "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss") Processing driver: $name" | Out-File -FilePath $LogPath -Append -Encoding UTF8
  32.  
  33.     if (-not (Test-Path $inf)) {
  34.         "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss") WARNING: INF file not found: $inf" | Out-File -FilePath $LogPath -Append -Encoding UTF8
  35.         continue
  36.     }
  37.  
  38.     # Stage driver with pnputil
  39. $pnputilOutput = pnputil /add-driver $inf /install 2>&1
  40. $pnputilOutput | ForEach-Object { "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss") PnPUtil: $_" | Out-File -FilePath $LogPath -Append -Encoding UTF8 }
  41. "$(Get-Date -Format "yyyy-MM-dd HH:mm:ss") PnPUtil Exit Code: $LASTEXITCODE" | Out-File -FilePath $LogPath -Append -Encoding UTF8
  42. }
  43.  
Advertisement
Add Comment
Please, Sign In to add comment