Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows Server 2012 R2 / Fix: Network Printer Goes Offline on Windows

February 20, 2023 Windows 10Windows Server 2012 R2Windows Server 2019

Fix: Network Printer Goes Offline on Windows

From time to time we notice that some connected network printers go offline, stop printing and print jobs begin to queue on the print servers running Windows Server. In this article we’ll consider why a network printer may go to offline state and how to fix this problem without printer re-installation or print server restart.

Open the Print Management console on your print server, find the printer with the Queue Status = Offline state, open its print queue properties and make sure that the “Use Printer Offline” option is not checked in its settings.

Use Printer Offline option on windows print server

Then make sure that the printer is turned on and accessible over the network (check printer availability using ping by IP address, make sure that you can open the printer management web interface).

How does Windows determine network printer availability status? In Windows 7 and newer, by default the SNMP (Simple Network Management Protocol) is used to query the network printer state. The print server sends an SNMP request to the printer and waits for a response. If no SNMP response has been received from the printer, such a printer is considered unavailable and goes offline on the print server. Let’s see how to configure SNMP protocol settings for network printers on Windows print server.

First of all, make sure that your printer supports SNMP. Open your network printer management web interface and make sure that SNMP is enabled in the printer settings and the community name used for it is public.

For example, you can find the SNMP settings of HP LaserJet CP1525 in Networking -> SNMP -> Enable SNMP read-only access (uses public for the Get Community Name).
enable snmp on network print web interface

Find your printer in the Print Management console, open its properties and go to the Ports tab. Open the port settings: Standard TCP/IP port -> Configure Port. If your printer supports SNMP, make sure that SNMP Status Enabled option is checked, and the Community Name is set to public.

enable snmp status checks on print port properties on windows server

If your printer doesn’t support SNMP, you must disable it in the printer port settings on the print server. Thus, Windows will stop sending SNMP packets to poll the device state.

Make sure that the printer state has changed to Ready.

network printer changes from offline to ready

You can find all printers with disabled SNMP on your print server using the following PowerShell cmdlet (the built-in PrintManagement module is used):

get-printerport |where {$_.snmpenabled -ne $True}|select name,protocol,description,printerhostaddress

get-printerport snmpenabled powershell

The following PowerShell command will help you to find ports of the network printers with the SNMP community name different from Public:

get-printerport |where {$_.SNMPCommunity -ne ‘Public’ –and $_.snmpenabled -eq $True }|select name,protocol,description,printerhostaddress, snmpenabled, SNMPCommunity

If the check of SNMP settings has not helped to get your printer online, you should check the following parameters.

  1. Make sure that the correct IP address of the printer is specified in the print port settings;
  2. Make sure that the port type used is “Standard TCP/IP Port” instead of “WSD Port”.
    use Standard TCP/IP Port instead of “WSD Port
  3. Make sure that your firewalls are not blocking SNMP traffic (Ports 161/UDP and 162/UDP);
  4. Remove your printer and print port completely and recreate them. Reinstall the printer drivers;
  5. Restart the spooler service: Restart-Service "Spooler"
  6. You can completely disable SNMP polling for all printers on Windows by creating a new DWORD parameter with the name SNMPLegacy and the value 1 in this registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print.

1 comment
7
Facebook Twitter Google + Pinterest
previous post
How to Manage Windows Services with PowerShell?
next post
An Internal Error has Occurred: Remote Desktop Connection Error

Related Reading

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

1 comment

sanit May 2, 2023 - 4:25 am

We had a similar issue. The printers were all on the same switch and we could see some goofy behavior in the logs. We set the port to have a static arp which did stop the printer from dropping its connection. We rebooted the switch and reverted back to normal port settings . Haven’t had any issues since.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Disable UAC Prompt for Specific Applications in Windows 10?
  • How to Download APPX File from Microsoft Store for Offline Installation?
  • Fix: Windows Cannot Connect to the Shared Printer
  • How to Clean Up Large System Volume Information Folder on Windows?
  • Fixing “Winload.efi is Missing or Contains Errors” in Windows 10
  • How to Hide Installed Programs in Windows 10 and 11
  • Windows Doesn’t Automatically Assign Drive Letters
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top