Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
7.3 KB
Raw Blame
[user]
I’m trying to set up a printer on my laptop, but the print job is stuck and nothing comes out. Can you walk me through clearing the queue and adding the printer again?

[assistant]
Sure. We can first inspect and clear the stuck queue, then remove and re-add the printer. I’ll assume you’re using Windows 11 unless you tell me otherwise. Is the printer connected by Wi-Fi, USB, or Ethernet?

[user]
It’s Windows 11, and the printer is connected to the same Wi-Fi as the laptop. It appears in the printer list, but the document has been sitting at “Printing” for about ten minutes.

[assistant]
Let’s start with the normal Windows interface.

1. Press **Windows + I** to open Settings.
2. Select **Bluetooth & devices**.
3. Select **Printers & scanners**.
4. Select the printer.
5. Choose **Open print queue**.
6. If the document is listed, select the three-dot menu beside it and choose **Cancel**.

Wait about 30 seconds and see whether the job disappears. If it remains at “Deleting” or “Printing,” tell me what you see in the queue window.

[user]
The queue window shows one PDF. Its status is “Deleting,” but it has stayed that way for several minutes. There’s also a button labeled “Cancel all.”

[assistant]
The queue is probably waiting for the Print Spooler service to finish a stalled operation. “Cancel all” may not help once the job is stuck, so we can restart the spooler and remove the queued file manually.

Before doing that, close the print queue window and any PDF or document windows that might still be sending the job. Then open **Terminal as administrator**:

1. Right-click the Start button.
2. Select **Terminal (Admin)**.
3. Select **Yes** if Windows asks for permission.

Let me know when the administrator terminal is open.

[user]
It’s open. The prompt says `PS C:\Windows\System32>`.

[assistant]
Run these commands one at a time. The first stops the Print Spooler service:

```powershell
Stop-Service -Name Spooler -Force
```

If it succeeds, PowerShell normally returns to the prompt without displaying anything. Then run:

```powershell
Get-ChildItem -Path "$env:windir\System32\spool\PRINTERS"
```

Paste the output here. This lets us see whether temporary spool files are still present before deleting them.

[user]
Here’s the output:

```text
PS C:\Windows\System32> Stop-Service -Name Spooler -Force
PS C:\Windows\System32> Get-ChildItem -Path "$env:windir\System32\spool\PRINTERS"

    Directory: C:\Windows\System32\spool\PRINTERS

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        9/30/2026   9:42 AM          18432 00017.SHD
-a----        9/30/2026   9:42 AM          57344 00017.SPL
```

[assistant]
Those are the spooler’s temporary job files. With the spooler stopped, it is safe to remove the files in that folder. Use this command exactly:

```powershell
Remove-Item -Path "$env:windir\System32\spool\PRINTERS\*" -Force
```

Then confirm that the folder is empty:

```powershell
Get-ChildItem -Path "$env:windir\System32\spool\PRINTERS"
```

If the second command shows only the directory heading and no file rows, start the spooler again:

```powershell
Start-Service -Name Spooler
Get-Service -Name Spooler
```

Paste the final service output.

[user]
I ran those commands. The folder is empty, and the final output is:

```text
Status   Name      DisplayName
------   ----      -----------
Running  Spooler   Print Spooler
```

The old PDF is no longer shown in the queue.

[assistant]
Good. The stuck job has been removed and the Print Spooler is running again. Before re-adding the printer, let’s check whether Windows still has the printer entry and whether it is marked offline.

Open **Settings > Bluetooth & devices > Printers & scanners**, select the printer, and look for its status. If you see **Offline**, **Error**, or **Needs attention**, tell me the exact wording. Also note whether the printer is still listed under the same name.

[user]
It’s still listed with the same name. The page says “Ready,” and there’s no offline warning. I’d still like to remove it and add it again so the setup is clean.

[assistant]
That’s reasonable. First remove the existing entry:

1. In the printer’s Settings page, select **Remove**.
2. Confirm with **Yes**.
3. Return to **Printers & scanners** and wait a few seconds.
4. Verify that the printer name no longer appears.

Do not unplug the printer. Keep it powered on and connected to Wi-Fi while Windows searches for it again. Tell me when the entry has disappeared.

[user]
It disappeared from the list. I’m back on the Printers & scanners page, and the printer is still powered on.

[assistant]
Now add it again:

1. Select **Add device** beside “Add a printer or scanner.”
2. Wait while Windows searches.
3. When the printer appears, select **Add device** next to it.
4. If Windows displays a message that the device is ready, select **Close**.

If it does not appear after about a minute, select **Add manually** and choose **Add a printer using an IP address or hostname**. For now, let me know whether it appears automatically and what status Windows shows after adding it.

[user]
It appeared automatically after about 20 seconds. I selected “Add device,” and Windows now says “Ready.” There’s also a button for printing a test page.

[assistant]
Print a test page before trying the PDF:

1. Select **Print a test page**.
2. Wait up to a minute.
3. Check whether a sheet comes out.
4. Return to the printer page and open **Print queue** to confirm the test job disappears.

If the page prints successfully, the connection and basic Windows printer setup are working. Tell me what happens and whether the queue is empty afterward.

[user]
The test page printed, and the queue is empty. I want to try the original PDF again, but I’m concerned it might get stuck the same way.

[assistant]
You can retry it with a couple of simple checks:

1. Open the PDF.
2. Press **Ctrl + P**.
3. Confirm the newly added printer is selected, rather than a PDF-saving option.
4. Open **Printer Properties** or **Preferences** if available and confirm the paper size matches the paper loaded, such as Letter or A4.
5. Set **Pages** to **All** and **Copies** to **1**.
6. Select **Print**.
7. Watch the queue for 10–20 seconds.

If the job changes to “Printing” and then disappears while a page comes out, it worked. If it stays in the queue, stop there rather than sending repeated copies, and tell me the status text.

[user]
I checked the printer selection and paper size, then printed one copy. It briefly showed “Printing,” disappeared from the queue, and the PDF printed correctly. Is there anything else I should check?

[assistant]
The main setup is complete. For a routine final check, you can verify that Windows will keep using this printer:

1. Open **Settings > Bluetooth & devices > Printers & scanners**.
2. Select the printer.
3. If **Let Windows manage my default printer** is enabled, either leave it enabled or turn it off if you want to choose this printer manually.
4. If you turn it off, select **Set as default** for this printer.
5. Open the printer’s **Print queue** once more and confirm it is empty.

You can also close the administrator Terminal window. No further spooler commands are needed.

[user]
The queue is empty, the printer is set as the default, and I closed Terminal. Everything is working now. Thanks.

[assistant]