How to map a network printer with an IP using Command Line ?

How to map a network printer with an IP using Command Line ?

In smaller companies, often print servers are not used because of economical reasons. On a previous post, I explained how to map a printer shared in a server with CMD.

First its necessary to ensure that the printer is correctly setup, with a static IP address assigned and turned ON.

The next step, is to download the printer driver from the manufacturer’s website, and if necessary extract the contents, search the file with the .INF extension, and open it with your notepad of choice

Search for the name of the driver, in this case “Canon Generic Plus PCL6”. This is very important for the script to work.

The script below has few notes and reminders about how to use it.