Script Autoinstall Printer using Local TCP IP

preview_player
Показать описание
Script Auto install Printer using Local TCP IP
I. Introduction
First I was looking for a way to install printers by IP faster than the normal "add a printer", "add a local printer", "create a new port" and that whole time-consuming process.

There are several ways to do this, I chose to use Windows already installed printer commands and wrote scripts for each of the printers I was trying to install.

There are several ways to do this, I chose to use Windows already installed printer commands and wrote scripts for each of the printers I was trying to install.

II. Start
File server: IP: 192.168.11.250 to share driver
Windows client : install Printer on this machine
HP P2035n : IP 192.168.11.6
Step 1: Download The Script Files and Printer driver:
(Repeating what I referenced in my NOTES above)

b. Download the correct printer drivers, and unpack/extract them to a drivers folder.

Step 2: Transfer The Files To The File Server:
Open Windows Explorer and navigate to the admin share of the remote computer: \IP_FILE_SERVER\Share_Name

Copy the scripts and drivers folders to wherever you want on the File Server. In our example, we copy them to Share_Name\Driver\Printer

Step 3: Delete The Port & Printer Name (Just In Case They Already Exist)
Now that you’re connected remotely, essentially what you’re going to use for this step is the specific port name and printer name that you plan to use, just to make sure neither already exists.

(This step has been edited based on a tip provided by IUCN5406 - it's best to try to delete the printer name before deleting the port, otherwise the name may still be in use. Thanks for the info IUCN5406!)

(delete the printer name, in case it already exists) cscript
(delete the printer port, in case it already exists)
NOTE: In some circumstances, you may need to delete the printer name before you are able to delete the printer port

Step 4: Create The Printer Port
Adds a printer port with name "IP_PRINTERIP" and IP address of "PRINTERIP":

Step 5: Install The Printer Driver
Getting the printer model and .inf file, then -h for the path to the .dll:

Step 6: "Tie It All Together"
Lastly, we’re going to name the printer and tie it to the printer port we created:

## III. Summary The above article I summarize the knowledge gained when using windows for my work (sys admin), hope it helps you a bit.
Certainly the article there are many shortcomings, looking for sympathy and submit feedback for me to complete more.
⭐ Connecting With Us ⭐
-------------------------------------------

⭐ Topics ⭐

#errorandfix

🛒AFFILIATES & REFERRAL LINKS🛒
-----------------------------------------------

Camera Ip Wifi YooSee Xoay 360 độ PTZ bao đẹp.

PHẦN MỀM KASPERSKY ANTI VIRUS 3PC

Phần Mềm Diệt Virus BKAV Profressional 12 Tháng - Hàng Chính Hãng

Thiết Bị Phát Wifi Di Động 4G LTE-Advanced TP-Link M7350 150Mbps - Hàng Chính Hãng

Phần mềm Microsoft 365 Family English dùng được 6 máy

THẢM DA TRẢI BÀN LÀM VIỆC DÙNG ĐƯỢC HAI MẶT
Рекомендации по теме
Комментарии
Автор

my inf file does not have the "; Release Specific Model Name for UPD" string. what should I use instead?

AaronPeace-km
Автор

If the printer ip address is dynamic, is it possible to make it auto fetch the printer so i don't need to reconnect the printer again?

spdictpro
Автор

script hay nhưng nếu mình muốn add nhiều máy in thì phải làm nhiều file bat khác nhau hả bác ?

kimlong