CN112506451A - Printer information management toolkit and management method - Google Patents

Printer information management toolkit and management method Download PDF

Info

Publication number
CN112506451A
CN112506451A CN202011442409.0A CN202011442409A CN112506451A CN 112506451 A CN112506451 A CN 112506451A CN 202011442409 A CN202011442409 A CN 202011442409A CN 112506451 A CN112506451 A CN 112506451A
Authority
CN
China
Prior art keywords
file
windows
registry
backup
printer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011442409.0A
Other languages
Chinese (zh)
Other versions
CN112506451B (en
Inventor
张赜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Leifeng Electronic Technology Co ltd
Original Assignee
Xi'an Leifeng Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Leifeng Electronic Technology Co ltd filed Critical Xi'an Leifeng Electronic Technology Co ltd
Priority to CN202011442409.0A priority Critical patent/CN112506451B/en
Publication of CN112506451A publication Critical patent/CN112506451A/en
Application granted granted Critical
Publication of CN112506451B publication Critical patent/CN112506451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1224Client or server resources management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the technical field of virtualization, in particular to a printer information management toolkit and a management method, wherein the management toolkit comprises a Windows file filter driver, a Windows file filter driver and a Windows file filter driver, wherein the Windows file filter driver acquires file operation behaviors in the installation process; the Windows registry driver acquires registry operation behaviors in the installation process; the printer information backup end sends the installation package process information to a Windows file filter driver and a Windows registry driver; and the printer information recovery end imports the file and the registry of the printer backup information into a local system and automatically completes the printer information recovery. The invention solves the problems of printer use and maintenance in the existing cloud desktop environment.

Description

Printer information management toolkit and management method
Technical Field
The invention relates to the technical field of virtualization, in particular to a printer information management toolkit and a management method.
Background
In the physical machine environment, when a user uses a printer, a mode of downloading a software driver installation package and directly operating an installation program is mostly adopted. After the installation is completed, the printer-related information is manually set. In the cloud desktop virtualization application environment, due to the diversity of printer models and the complexity of the use environment, an administrator cannot perform uniform installation and setting of printers during cloud desktop mirroring. When the cloud desktop is required to be issued to a user for use, the administrator performs drive installation setting on each cloud desktop required to use the printer. When an administrator needs to perform mirror image upgrading on the cloud desktop, or the cloud desktop is abnormal and needs to perform initialization operation again, the printer driver and the printer setting are all lost, and the administrator needs to perform driver installation and use setting on the printer again. The workload and the working difficulty of the administrator are increased, and the system maintenance workload is increased.
Disclosure of Invention
The invention provides a printer information management toolkit and a management method, and solves the problems of printer use and maintenance in the existing cloud desktop environment.
In order to achieve the purpose, the invention provides the following technical scheme: a printer information management toolkit and a management method thereof are provided, wherein the management toolkit comprises: the Windows file filtering driver is mounted on a Windows file system equipment stack, and acquires file operation behaviors in the installation process and performs redirection operation through a callback port of the Windows file filtering driver; the Windows registry driver acquires registry operation behaviors in the installation process through registry callback and performs redirection operation; the printer information backup terminal is an application program running in a Windows environment, and the application program releases and starts a Windows file filter driver and a Windows registry driver; the program is used for starting the installation package, and the process information of the installation package is sent to the Windows file filter driver and the Windows registry driver; converting the redirected registry redirection file into an imported batch processing file, and making the generated file and the registry redirection file into a printer information backup package; the printer information recovery end: the printer recovery end is an application program running in a Windows environment, the application program searches for a printer information backup package which is backed up locally, and according to data backed up in the information package, files and a registry of printer backup information are led into a local system, and printer information recovery is automatically completed.
Preferably, the printer information backup method includes the following steps:
a backup step I, an administrator prepares a software driver package corresponding to a printer;
a backup step II, running a backup end program by an administrator;
a third backup step, the backup end program can release the Windows file filter driver file and the Windows registry driver file, create service and load the Windows file filter driver and the Windows registry driver;
the Windows file filter driver and the Windows registry driver can perform kernel function callback registration to monitor the file operation and registry operation of the system;
and fourthly, starting a printer software installation package installation program needing to be operated through a backup end program, wherein the backup end program can send the software installation package process id to the Windows file filter driver and the Windows registry driver. After the Windows file filtering driver and the Windows registry driver receive the process id of the software installation package, the process id is judged when the file and registry behaviors are filtered. Judging whether the current process id or the parent process id contains the software installation package process id, and if the current process id or the parent process id contains the software installation package process id, determining that the current operation needs to be redirected;
a fifth backup step, installing printer software and a driver by an administrator according to the prompt of a printer installation package, and setting the printer in the installation process;
and step six, after the software is installed, the installation is selected and finished at the backup end. At this time, the backup end can perform format conversion on the redirected registry key and export the registry key into a reg format, so that modification and loading of the import end are facilitated. After the export is completed, the printer information backup is completed.
Preferably, the printer information recovery method includes the steps of:
the method comprises the following steps that firstly, an administrator confirms that a printer information backup package exists at a local specified position;
in the second recovery step, the administrator runs the recovery end through a remote command and transmits the position of the printer information backup packet into the program of the import end;
a third recovery step, the recovery end program conducts file import of the printer information backup package, the recovery mode is file copy, and if the file has the same name with the path, file version judgment is conducted, and a new version is taken as the standard;
the recovery step four, the recovery end program conducts registry import of the printer information backup package, and the import mode is reg file import; if the same path registration table entry exists, performing covering operation by taking the key value of the printer information backup package as a standard;
a fifth recovery step, restarting printer related services, such as Spooler and LanmanServer, so that the Windows system can normally identify the printer;
and a sixth recovery step, after the file import and the registry import are completed, prompting the user that the printer information recovery is completed, and logging out or restarting the printer service which can be normally used.
The invention has the beneficial effects that: the invention relates to operations such as file redirection, registry redirection, process id judgment, file import, registry import and the like in a Windows operating system. Through the operations, the installation and the setting of the driver of the printer can be backed up and restored, the installation and the setting of the printer are not required to be carried out again after the master disk image is upgraded or the cloud desktop is issued again by an administrator, the printer information can be restored through remote commands, and the workload of the administrator for maintaining the cloud desktop is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 illustrates a printer information backup step according to the present invention;
FIG. 2 shows the printer information recovery procedure according to the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
a printer information management toolkit and a management method thereof are provided, wherein the management toolkit comprises:
the Windows file filtering driver is mounted on a Windows file system equipment stack, and acquires file operation behaviors in the installation process and performs redirection operation through a callback port of the Windows file filtering driver;
the Windows registry driver acquires registry operation behaviors in the installation process through registry callback and performs redirection operation;
the printer information backup terminal is an application program running in a Windows environment, and the application program releases and starts a Windows file filter driver and a Windows registry driver; the program is used for starting the installation package, and the process information of the installation package is sent to the Windows file filter driver and the Windows registry driver; converting the redirected registry redirection file into an imported batch processing file, and making the generated file and the registry redirection file into a printer information backup package;
the printer information recovery end: the printer recovery end is an application program running in a Windows environment, the application program searches for a printer information backup package which is backed up locally, and according to data backed up in the information package, files and a registry of printer backup information are led into a local system, and printer information recovery is automatically completed.
Through the Windows file filter driver and the Windows registry driver, the invention realizes that after the administrator runs the printer software installation package, the file, the driver and the registry modification process released by the printer software installation package are recorded, the file and the registry are redirected, the related settings of the printer are tracked, and after the settings are finished, the green software package is generated. When the cloud desktop needs to be subjected to mirror image upgrading or reinitialization, the green software package can be used for software import through a formulation tool, and printer software installation packages do not need to be repeatedly operated for many times and printer setting is conducted again. The method and the device mainly solve the problem that a user needs to mount the driver and set the printer again in the cloud desktop virtual environment.
Example two:
according to fig. 1, the printer information backup method includes the following steps:
a backup step I, an administrator prepares a software driver package corresponding to a printer;
a backup step II, running a backup end program by an administrator;
a third backup step, the backup end program can release the Windows file filter driver file and the Windows registry driver file, create service and load the Windows file filter driver and the Windows registry driver;
the Windows file filter driver and the Windows registry driver can perform kernel function callback registration to monitor the file operation and registry operation of the system;
and fourthly, starting a printer software installation package installation program needing to be operated through a backup end program, wherein the backup end program can send the software installation package process id to the Windows file filter driver and the Windows registry driver. After the Windows file filtering driver and the Windows registry driver receive the process id of the software installation package, the process id is judged when the file and registry behaviors are filtered. Judging whether the current process id or the parent process id contains the software installation package process id, and if the current process id or the parent process id contains the software installation package process id, determining that the current operation needs to be redirected;
a fifth backup step, installing printer software and a driver by an administrator according to the prompt of a printer installation package, and setting the printer in the installation process;
and step six, after the software is installed, the installation is selected and finished at the backup end. At this time, the backup end can perform format conversion on the redirected registry key and export the registry key into a reg format, so that modification and loading of the import end are facilitated. After the export is completed, the printer information backup is completed.
Example three:
according to fig. 2, the printer information recovery method includes the following steps:
the method comprises the following steps that firstly, an administrator confirms that a printer information backup package exists at a local specified position;
in the second recovery step, the administrator runs the recovery end through a remote command and transmits the position of the printer information backup packet into the program of the import end;
a third recovery step, the recovery end program conducts file import of the printer information backup package, the recovery mode is file copy, and if the file has the same name with the path, file version judgment is conducted, and a new version is taken as the standard;
the recovery step four, the recovery end program conducts registry import of the printer information backup package, and the import mode is reg file import; if the same path registration table entry exists, performing covering operation by taking the key value of the printer information backup package as a standard;
a fifth recovery step, restarting printer related services, such as Spooler and LanmanServer, so that the Windows system can normally identify the printer;
and a sixth recovery step, after the file import and the registry import are completed, prompting the user that the printer information recovery is completed, and logging out or restarting the printer service which can be normally used.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (3)

1. A printer information management kit, comprising:
the Windows file filtering driver is mounted on a Windows file system equipment stack, and acquires file operation behaviors in the installation process and performs redirection operation through a callback port of the Windows file filtering driver;
the Windows registry driver acquires registry operation behaviors in the installation process through registry callback and performs redirection operation;
the printer information backup terminal is an application program running in a Windows environment, and the application program releases and starts a Windows file filter driver and a Windows registry driver; the program is used for starting the installation package, and the process information of the installation package is sent to the Windows file filter driver and the Windows registry driver; converting the redirected registry redirection file into an imported batch processing file, and making the generated file and the registry redirection file into a printer information backup package;
the printer information recovery end: the printer recovery end is an application program running in a Windows environment, the application program searches for a printer information backup package which is backed up locally, and according to data backed up in the information package, files and a registry of printer backup information are led into a local system, and printer information recovery is automatically completed.
2. A printer information backup method for the management toolkit of claim 1, characterized by comprising the steps of:
a backup step I, an administrator prepares a software driver package corresponding to a printer;
a backup step II, running a backup end program by an administrator;
a third backup step, releasing the Windows file filter driver and the Windows registry driver by the backup end program, creating service, and loading the Windows file filter driver and the Windows registry driver; windows file filter driver and Windows registry driver carry on the callback registration of the kernel function, realize the file operation and registry operation to the system are monitored;
a fourth backup step, starting a printer software installation package installation program to be operated through a backup end program, and sending the software installation package process id to a Windows file filter driver and a Windows registry driver by the backup end program; after the Windows file filtering driver and the Windows registry driver receive the process id of the software installation package, judging the process id when filtering the file and registry behaviors; judging whether the current process id or the parent process id contains the software installation package process id, and if the current process id or the parent process id contains the software installation package process id, determining that the current operation needs to be redirected;
a fifth backup step, installing printer software and a driver by an administrator according to the prompt of a printer installation package, and setting the printer in the installation process;
after the software is installed, selecting and installing at a backup end to finish the backup step; at this moment, the backup end carries out format conversion on the redirected registry key and exports the registry key into a reg format, so that modification and loading of the import end are facilitated, and after export is completed, printer information backup is completed.
3. A printer information recovery method for the management toolkit of claim 1, characterized by comprising the steps of:
the method comprises the following steps that firstly, an administrator confirms that a printer information backup package exists at a local specified position;
in the second recovery step, the administrator runs the recovery end through a remote command and transmits the position of the printer information backup packet into the program of the import end;
a third recovery step, the recovery end program conducts file import of the printer information backup package, the recovery mode is file copy, and if the file has the same name with the path, file version judgment is conducted, and a new version is taken as the standard;
the recovery step four, the recovery end program conducts registry import of the printer information backup package, and the import mode is reg file import; if the same path registration table entry exists, performing covering operation by taking the key value of the printer information backup package as a standard;
a fifth step of recovering, namely restarting the relevant service of the printer;
and a sixth recovery step of prompting the printer to complete the recovery of the information after the file import and the registry import are completed.
CN202011442409.0A 2020-12-08 2020-12-08 Printer information management toolkit and management method Active CN112506451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011442409.0A CN112506451B (en) 2020-12-08 2020-12-08 Printer information management toolkit and management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011442409.0A CN112506451B (en) 2020-12-08 2020-12-08 Printer information management toolkit and management method

Publications (2)

Publication Number Publication Date
CN112506451A true CN112506451A (en) 2021-03-16
CN112506451B CN112506451B (en) 2023-04-07

Family

ID=74971013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011442409.0A Active CN112506451B (en) 2020-12-08 2020-12-08 Printer information management toolkit and management method

Country Status (1)

Country Link
CN (1) CN112506451B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190190A (en) * 2021-05-25 2021-07-30 西安雷风电子科技有限公司 Printer setting modification method, device and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050022971A (en) * 2003-08-28 2005-03-09 최백준 Methods for cloning a printer driver to computers included in domain and recording medium thereof
US20070136369A1 (en) * 2005-12-08 2007-06-14 Bruce Hsu Program sharer
JP2010055447A (en) * 2008-08-29 2010-03-11 Brother Ind Ltd Printer
CN101996254A (en) * 2010-11-18 2011-03-30 福建升腾资讯有限公司 Software rollback method based on file system layer
CN102609301A (en) * 2012-01-13 2012-07-25 武汉噢易科技有限公司 Method for deploying software for multiple clients quickly
CN102968359A (en) * 2012-11-13 2013-03-13 福建升腾资讯有限公司 Registry transparent penetration method under disc protection system
CN104318179A (en) * 2014-10-30 2015-01-28 成都卫士通信息产业股份有限公司 File redirection technology based virtualized security desktop
US20150040181A1 (en) * 2013-07-30 2015-02-05 FSLogix, Inc. Managing configurations of computing terminals
CN105117645A (en) * 2015-07-29 2015-12-02 杭州安恒信息技术有限公司 Method for operating multiple samples of sandbox virtual machine based on file system filtering drive
CN105447382A (en) * 2014-09-28 2016-03-30 北京云巢动脉科技有限公司 Sandbox based software registry redirection method and system
CN107992355A (en) * 2017-12-21 2018-05-04 中兴通讯股份有限公司 A kind of method, apparatus and virtual machine of application deployment software
CN111124598A (en) * 2019-10-18 2020-05-08 西安雷风电子科技有限公司 Virtual desktop software management method and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050022971A (en) * 2003-08-28 2005-03-09 최백준 Methods for cloning a printer driver to computers included in domain and recording medium thereof
US20070136369A1 (en) * 2005-12-08 2007-06-14 Bruce Hsu Program sharer
JP2010055447A (en) * 2008-08-29 2010-03-11 Brother Ind Ltd Printer
CN101996254A (en) * 2010-11-18 2011-03-30 福建升腾资讯有限公司 Software rollback method based on file system layer
CN102609301A (en) * 2012-01-13 2012-07-25 武汉噢易科技有限公司 Method for deploying software for multiple clients quickly
CN102968359A (en) * 2012-11-13 2013-03-13 福建升腾资讯有限公司 Registry transparent penetration method under disc protection system
US20150040181A1 (en) * 2013-07-30 2015-02-05 FSLogix, Inc. Managing configurations of computing terminals
CN105447382A (en) * 2014-09-28 2016-03-30 北京云巢动脉科技有限公司 Sandbox based software registry redirection method and system
CN104318179A (en) * 2014-10-30 2015-01-28 成都卫士通信息产业股份有限公司 File redirection technology based virtualized security desktop
CN105117645A (en) * 2015-07-29 2015-12-02 杭州安恒信息技术有限公司 Method for operating multiple samples of sandbox virtual machine based on file system filtering drive
CN107992355A (en) * 2017-12-21 2018-05-04 中兴通讯股份有限公司 A kind of method, apparatus and virtual machine of application deployment software
CN111124598A (en) * 2019-10-18 2020-05-08 西安雷风电子科技有限公司 Virtual desktop software management method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JINGPING LI: "Drive-by downloads defense based on kernel level filtering", 《IEEE XPLORE》 *
刘泽鹏: "Windows平台下虚拟执行环境的研究与实现", 《万方数据库》 *
周勇生: "以不变应万变:还原网络打印工作状态", 《电脑知识与技术(经验技巧)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190190A (en) * 2021-05-25 2021-07-30 西安雷风电子科技有限公司 Printer setting modification method, device and system
CN113190190B (en) * 2021-05-25 2024-03-29 西安雷风电子科技有限公司 Printer setting modification method, device and system

Also Published As

Publication number Publication date
CN112506451B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN100407638C (en) Method for software upgrading and withdrawing
US20120047499A1 (en) Apparatus and Method for Managing Software Applications Using Partitioned Data Storage Devices
US8539285B2 (en) Systems for agile error determination and reporting and methods thereof
US7886292B2 (en) Methodology of individualized software deployment for hardware-independent personal computer mass development
US20060184650A1 (en) Method for installing operating system on remote storage: flash deploy and install zone
US8433772B2 (en) Automated tape drive sharing in a heterogeneous server and application environment
CN108616384B (en) Centralized service management deployment tool and method
US11706080B2 (en) Providing dynamic serviceability for software-defined data centers
CN102163167A (en) Method and device for rescuing system
CN107071030B (en) Ceph distributed storage system deployment method and system
US8237973B2 (en) Print plug-in isolation
CN104573494A (en) Safety mobile office method based on WMI software whitelist mechanism
CN104391713A (en) Automatic installation method for Windows system
WO2017124799A1 (en) Firmware management method and device
CN112506451B (en) Printer information management toolkit and management method
CN101453473A (en) Remote service system based on different operation systems and equipment thereof
US10606632B2 (en) Preventing interruption during virtual machine reboot
CN111813683B (en) Universal automatic synchronization method for software testing environment
CN101996254A (en) Software rollback method based on file system layer
CN112764789A (en) Distributed software upgrading method and node
US9348849B1 (en) Backup client zero-management
JP4141409B2 (en) External peripherals
CN109062627A (en) A kind of configuration method of Linux server system kdump service
CN116243932A (en) Cloud desktop software installation package manufacturing method based on user session
CN113568714A (en) Disk management method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant