Hi Андрей, I am Henry and I want to share my insight about your issue.
The Event Viewer log tells us that:
- Event ID 842: This confirms the system is trying to use Driver Isolation, which is a critical stability feature.
- The Error ("The handle is invalid"): This is a low-level crash, indicating the driver itself is faulty.
- The Source: The log explicitly names the failing driver: HP Color LaserJet Pro MFP M477 PCL-6.
Here are step-by-step you can follow:
Step 1: Reinstall the Faulty Driver
- Open PowerShell as an Administrator on your Server Core machine.
- Remove the Printer: First, remove the printer queue that uses the faulty driver.
Remove-Printer -Name "MFP-RECEP-CL-A3" - Remove the Corrupted Driver: Now, completely remove the driver from the system.
Remove-PrinterDriver -Name "HP Color LaserJet Pro MFP M477 PCL-6" - Install a Fresh Driver:
- Download the latest official driver for the HP Color LaserJet Pro MFP M477 specifically for Windows Server 2022 from the HP support website.
- Copy the driver files to your server (e.g., C:\Drivers).
- Use the pnputil command to install the new driver from its .inf file:
pnputil /add-driver C:\Drivers\hp_driver.inf /install
- Re-create the Printer: Add the printer back, now linked to the new, clean driver.
Add-Printer -Name "MFP-RECEP-CL-A3" -DriverName "HP Color LaserJet Pro MFP M477 PCL-6" -PortName "Your_Printer_Port"
Step 2: If the targeted driver reinstall does not work, here are the next steps:
- Reset the Print Processor:
Set-Printer -Name "MFP-RECEP-CL-A3" -PrintProcessor "WinPrint" - Clear the Spooler Cache: This removes any stuck or corrupted print jobs.
-
net stop spooler -
del /Q /F %systemroot%\System32\spool\PRINTERS\* -
net start spooler
-
I hope this information and these keywords help point you in the right direction for your research. Let me know how it goes, and if this answer helps, feel free to hit “Accept Answer” so others can benefit too