Skip to content

Instantly share code, notes, and snippets.

@staplerfahrer
Last active March 1, 2023 14:48
Show Gist options
  • Save staplerfahrer/1dd00040fb0b7ce3678294b75198efd9 to your computer and use it in GitHub Desktop.
Save staplerfahrer/1dd00040fb0b7ce3678294b75198efd9 to your computer and use it in GitHub Desktop.
Mount a Windows 7 Printer Share after MS security patch KB505565

Install the printer driver locally.

Store HOSTNAME share credentials from the command line:

cmdkey /add:HOSTNAME /user:USER /pass:PASS

Open the control panel (For Windows 11: Windows Settings > Bluetooth & Devices > Devices > More devices and printer settings (at the bottom))

Click Add a printer

Click "The printer that I want isn't listed"

Select "Add a local printer or network printer with manual settings"

Click Next

Select "Create a new port"

Leave "Local Port" selected

Click Next

Enter the share as port name: \\HOSTNAME\SHARENAME

Click Next

Select the printer driver you installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment