cmd如何加网络打印机(网络打印机添加方法及操作流程简介)

  • cmd如何加网络打印机(网络打印机添加方法及操作流程简介)已关闭评论
  • A+
所属分类:打印机驱动安装
摘要

ClearingupconfusionBeforewediveintothestepsforaddinganetworkprinterthroughCMD,letusfirstunderstandwhatanetworkprinteris.Anetworkprinterisaprinterthatissharedacrossmultiplecomp

Clearing up confusion

Before we dive into the steps for adding a network printer through CMD, let us first understand what a network printer is. A network printer is a printer that is shared across multiple computers through a network connection. This means that instead of having multiple printers for different computers, you can have one single printer that can be accessed by all the computers in your network.

Prerequisites for adding a network printer through CMD

Before we start with the steps for adding a network printer through CMD, there are a few prerequisites that you should keep handy.

Name or IP address of the printer: This is the most important information that you will require. You will need to know the name or IP address of the network printer that you want to add.

Driver software for the printer: You will need to have the driver software for the printer that you want to add. This can be downloaded from the manufacturer's website.

Step-by-step guide to add a network printer through CMD

Now, let's dive into the steps for adding a network printer through CMD.

Press the Windows key + R to open the Run dialogue box.

Type in 'cmd' and press Enter.

Type in the following command: 'net use LPT1 \\ /user: '

Replace '' with the name or IP address of the printer that you want to add.

If the printer requires a username and password, then replace '' and '' with the username and password of an account that has access to the printer.

Press Enter.

Type in the following command: 'cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_ -h -o raw'

Replace '' with the name or IP address of the printer that you want to add.

Press Enter.

Type in the following command: 'cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prndrvr.vbs -a -m "" -e "Windows x64" -h ""'

Replace '' with the name of your printer model and '' with the file path to the driver software that you downloaded.

Press Enter.

Type in the following command: 'cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p "" -m "" -r IP_"'

Replace '' with the name you want to give to your printer. This can be any name that you want to give to the printer.

Press Enter.

You have successfully added the network printer through CMD.

Conclusion

Now that you have a step-by-step guide to add a network printer through CMD, you can easily add a network printer without any hassles. Just ensure that you have the printer name or IP address and the driver software handy, and you should be good to go.