Adaptable to printer deployment (1)

Source: Internet
Author: User
Tags ad server

Note: This is a Windows VBScript program written to solve the problem at work. The English name is "adaptable printer deployment. For a Chinese blog, I wrote a Chinese introduction and a detailed explanation of the implementation. This 0.5.5 version also requires many improvements and feature addition tasks. However, this version is sufficient for most of the requirements of this task.

 

Brief description:

This program is developed in VBScript language. It provides an easy tool for the Administrator to plan, configure, deploy, adjust, and manage the network printing in the LAN. It can be planned and configured in advance, quickly deploy to the desktop to easily adapt to printer policy adjustments.

 

Applicable scenarios:

· Suitable for LAN environments without Windows Server, specifically the network environment without the Windows Printing Service or other centralized printing management systems. In the network environment of the Windows Print Service, printerconnection and group can be used.
Policy or simple script to facilitate printing and deployment. In the centralized print management environment, the printer's position and driver can be independent of the printer itself. In these two cases, the administrator can easily deploy the printer without the help of the program.

· The network printer has a fixed IP address or DNS name that can be resolved, it also supports port 9100 Printing Protocol (that is, you can add a network printer by adding a standard TCP/IP Port on a Windows computer)

To put it simply, in a network environment where the printer is not fully managed, you can use this script based on the locations set by the Administrator to match the printer and the computer, deploy the corresponding printer to the computer terminal.

 

Requirements:

In the network environment, the printer may be moved, added, removed, or updated. The client not only has a desktop computer, but also a mobile laptop, a computer update, or a system reinstallation, the printing requirements also change at any time, which will involve re-deployment of the printing service. Manual or graphical interfaces are time-consuming, time-consuming, and difficult to manage and record. They also lead to human errors, especially in the multi-department medium and large enterprise environment, configuration differences are large, so in order to make it easier to deploy and print services to the customer terminal, one can be customized in advance, which is convenient and intuitive, adapts to changes, and can be remotely deployed, this greatly facilitates the Administrator's management of print requirements.

Instance 1:

The new printer needs to be deployed to the Department and replaced with an old one. Due to printer drivers and other problems, all department computers need to install the printer and delete the old printer. In a network environment without the Windows Print Service, the Administrator has to manually install the printer on each computer. To use this program, the Administrator only needs to redeploy all the printers in this department.Printer descriptionFile, add a line of the new printer and its driver, and delete the old printer description. Then, use any remote program running or other means to deploy it to all the target computers.

Instance 2:

The Department replaces 200 computers. The company uses the existing MDT system to install the system and software for each computer. The printer deployment can be added to the MDT application using this script, install the SDK according to the requirements of different departments.

 

Understand her logic:

The basic logic is:

1. The administrator sets the configuration information for all computers and printers.

2. She reads the department of the computer according to the parameters. This can be set from the location attribute of the computer account on the ad server, or conveniently set the Department computer list file;

3. Read the printer list file of the department to which the computer belongs. This printer list file lists the names of all installed printers.

4. Read the configuration information of each printer, such as the driver and IP address, from the printer configuration file.

5. If necessary, delete all TCP/IP Port printers.

6. Add the printer TCP/IP Port Based on each printer to handle conflicts and install the printer on the client.

 

Preparation:

Due to the characteristics of the printer, in general, it cannot be moved or once placed, no one is willing to move, unless the upgrade and replacement reasons, so it is relatively fixed for users. In terms of user habits, there are generally two options: select the nearest printer, which is out of efficiency; select the printer suitable for quality requirements, which is out of quality requirements. At the same time, the company also has administrative regulations. For example, Financial Departments only use financial departments, but financial departments may need high-quality color printers from marketing departments, or everyone can print it to the MFP with the lowest cost. In either case, the administrator needs to install a suitable printer according to the company's requirements, so the first thing to do is group, for example, the computer list of the financial group and the list of available printers, as well as the initial default printers, and they are recorded inDepartment computer listAndPrinter list.

The printer driver test is required. If the printer vendor only provides the driver installer package, the script cannot support automatic deployment. INF file. Printer Drivers may be forwindows XP or for Windows
7, or 32-bit and 64-bit systems, must be installed separately based on these categories, and different types of printers, although using the same inf file description, however, the model description may be different. You need to determine the model description used by each printer. Generally, there are two methods to obtain the description name. One is to find the description name of the model from the INF file, or to record the description name used during the installation process. In a specific test, you must install the TCP/IP Port printer on Windows. Any problems must be solved in advance. In the test of this script, HP, Kyocera,
Canon, Ricoh, and other printers (including MFP ).

At the same time, this script also supports the management of different branch offices (remote office locations). This can be achieved by giving each branch a code, which will be explained later.

This script does not support the deployment of customized printer configurations.

 

To be continued...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.