Skip to main content

How to connect network shared printers

Step-by-Step Instruction: Connect a Shared Printer Over Network (Generalized)

Scenario:

  • Printer Name (shared on server): PRINTER_SHARE_NAME

  • Server IP: SERVER_IP_ADDRESS

  • Local Administrator Account on Server: SERVER_ADMIN_USERNAME

  • Password: SERVER_ADMIN_PASSWORD

  • Client PC: Standalone / Workgroup


Step 1: Clear any existing network connections

  1. Open Command Prompt as Administrator on the client PC.

  2. Run the following command to remove any existing network connections:


net use * /delete /y

Step 2: Store server credentials

  1. Run the following command to save the admin credentials for the server:


cmdkey /add:SERVER_IP_ADDRESS /user:SERVER_ADMIN_USERNAME /pass:SERVER_ADMIN_PASSWORD

Step 3: Create a network connection to the shared printer

  1. Run this command to connect to the printer share:


net use "\\SERVER_IP_ADDRESS\PRINTER_SHARE_NAME" SERVER_ADMIN_PASSWORD /user:SERVER_ADMIN_USERNAME

Note: If the printer share name contains spaces, enclose it in quotes:


net use "\\SERVER_IP_ADDRESS\PRINTER_SHARE_NAME" SERVER_ADMIN_PASSWORD /user:SERVER_ADMIN_USERNAME

Step 4: Install the printer on the client PC

  1. Run this command to add the shared printer to the client system:


rundll32 printui.dll,PrintUIEntry /in /n "\\SERVER_IP_ADDRESS\PRINTER_SHARE_NAME"

Step 5: Verify installation

  1. Open Control Panel → Devices and Printers on the client PC.

  2. The printer PRINTER_SHARE_NAME should appear in the list.

  3. Test by printing a test page to ensure it works correctly.