Operating system deployment method and system of general-purpose computer in local area network
By using WDS components and PXE environment in the local area network, combined with the Sqlserver database, batch deployment of customized operating systems for general computers is realized, which solves the problems of low deployment efficiency and high cost in the existing technology and achieves efficient deployment without special media. .
Patent Information
- Application Number
- CN202410654494.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-30
AI Technical Summary
Existing computer operating system deployment methods cannot achieve large-scale batch deployment, especially on general-purpose computers, and the closed nature of thick client technology leads to increased customer usage costs.
Using WDS components, PXE environment and Sqlserver database in the LAN, the boot image and pre-installation image are deployed through the server. The computer requests and deploys the image in the WinPE environment, configures the VLAN interface and DHCP service, and realizes batch deployment without special installation media.
It realizes batch deployment of customized operating systems for general-purpose computers in a local area network environment, overcomes the closed nature of thick client technology, and reduces usage costs.
Smart Images

Figure CN118567657A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a method and system for deploying an operating system of a general-purpose computer in a local area network. Background Art
[0002] There are three main methods for deploying operating systems in existing computers: 1. Start the installation through the operating system CD. This method has a long history. This method requires the use of installation media such as CDs for deployment. Due to the limitation of the number of installation media, large-scale batch deployment cannot be achieved. 2. Use a USB flash drive to load the PE boot image and operating system image, start the computer, and then use the deployment software in the USB flash drive to deploy the operating system image. This method requires the use of installation media such as USB flash drives for deployment. Due to the limitation of the number of installation media, large-scale batch deployment cannot be achieved. 3. Fat client deployment technology based on LAN developed by various manufacturers, but fat client products can only be deployed on dedicated fat clients produced by various manufacturers and cannot be deployed on general-purpose computers, which invisibly increases the customer's usage cost. Summary of the invention
[0003] In view of the defects in the prior art, the present invention provides a method and system for deploying an operating system of a general-purpose computer in a local area network, which can be deployed in batches on a large scale on general-purpose computers.
[0004] In a first aspect, a method for deploying an operating system of a general-purpose computer in a local area network comprises:
[0005] Deploy WDS components on the server;
[0006] The server builds the boot image of the computer
[0007] The template computer builds a pre-installed image and snaps it onto the server;
[0008] The computer initiates a boot request to the server in the PXE environment;
[0009] The server returns the corresponding boot image to the computer according to the boot request;
[0010] The computer receives the boot image and enters the WinPE environment;
[0011] The computer requests the pre-installation image from the server in the WinPE environment;
[0012] The preinstalled image returned by the computer deployment server.
[0013] Furthermore, after the WDS component is deployed on the server, the following steps are also included:
[0014] Configure the VLAN interface and DHCP service of the switch in the LAN; each VLAN interface is associated with a DHCP address pool; the DHCP address pool is used to provide IP addresses and server addresses for computers when the computers corresponding to the VLAN interface enter the PXE environment.
[0015] Furthermore, after the WDS component is deployed on the server, the following steps are also included:
[0016] Install the Sqlserver database on the server and create a network IP address pool table, department classification dictionary table, and computer name table;
[0017] The network IP address pool table includes the computer's IP address, MAC address, last login time, gateway or machine serial number;
[0018] The department classification dictionary table includes the name information of the department;
[0019] The computer name table includes the computer name and MAC address of the computer.
[0020] Furthermore, the computer requests the server to pre-install the image in the WinPE environment, specifically including:
[0021] The computer boots to Windows Deployment Services in the PXE environment;
[0022] The computer receives a client template selected in Windows Deployment Services; wherein each client template is associated with a preinstalled image;
[0023] The computer gets the preinstalled image returned by the server based on the client template.
[0024] Furthermore, the pre-installation image returned by the computer deployment server specifically includes:
[0025] The computer receives the disks and partitions selected for deployment in Windows Deployment Services;
[0026] The computer receives the department and computer name selected in Windows Deployment Services;
[0027] The computer receives the optional software selected in Windows Deployment Services;
[0028] The computer deploys a preinstalled image based on the selected disk, partition, department, computer name, and optional software.
[0029] In a second aspect, an operating system deployment system for a general-purpose computer in a local area network includes:
[0030] Server: used to deploy WDS components, build the computer's boot image, and return the corresponding boot image to the computer according to the boot request;
[0031] Template computer: used to build pre-installed images and capture them on the server;
[0032] Computer: used to initiate a boot request to the server in the PXE environment, receive the boot image, and enter the WinPE environment; request a pre-installation image from the server in the WinPE environment and deploy the pre-installation image returned by the server.
[0033] Furthermore, the core switch in the LAN is used to:
[0034] Configure the VLAN interface and DHCP service of the switch in the LAN; each VLAN interface is associated with a DHCP address pool; the DHCP address pool is used to provide IP addresses and server addresses for computers when the computers corresponding to the VLAN interface enter the PXE environment.
[0035] Furthermore, the server is also used to:
[0036] Install the Sqlserver database on the server, create a network IP address pool table, a department classification dictionary table, and a computer name table;
[0037] The network IP address pool table includes the computer's IP address, MAC address, last login time, gateway or machine serial number;
[0038] The department classification dictionary table includes the name information of the department;
[0039] The computer name table includes the computer name and MAC address of the computer.
[0040] Furthermore, the computer is specifically used for:
[0041] Boot to Windows Deployment Services in a PXE environment;
[0042] Receiving a client template selected in Windows Deployment Services; wherein each client template is associated with a preinstalled image;
[0043] Gets the preinstalled image returned by the server based on the client template.
[0044] Furthermore, the computer is specifically used for:
[0045] Receive the disks and partitions selected for deployment in Windows Deployment Services;
[0046] Receive the department and computer name selected in Windows Deployment Services;
[0047] Receive optional software selected in Windows Deployment Services;
[0048] Deploy preinstalled images based on selected disks, partitions, departments, computer names, and optional software.
[0049] It can be seen from the above technical solutions that the operating system deployment method and system for general-purpose computers in a local area network provided by the present invention realize the function of batch deployment of customized operating systems for general-purpose computers in a local area network environment, does not require special installation media, and overcomes the closed nature of fat client technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0051] Figure 1 A flow chart of a method provided for an embodiment.
[0052] Figure 2 A schematic diagram of a client selection interface provided in an embodiment.
[0053] Figure 3 A schematic diagram of a disk partition selection interface provided in an embodiment.
[0054] Figure 4 A schematic diagram of a computer name selection interface provided in an embodiment.
[0055] Figure 5 A schematic diagram of an optional software selection interface provided in an embodiment.
[0056] Figure 6 A schematic diagram of a desktop background image generated according to an embodiment. DETAILED DESCRIPTION
[0057] The embodiments of the technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and the protection scope of the present invention cannot be limited thereto. It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should be the common meanings understood by those skilled in the art to which the present invention belongs.
[0058] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0059] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0060] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0061] Example:
[0062] A method for deploying an operating system for a general-purpose computer in a local area network, see Figure 1 ,include:
[0063] Deploy WDS components on the server;
[0064] The server builds the computer's boot image;
[0065] The template computer builds a pre-installed image and snaps it onto the server;
[0066] The computer initiates a startup request to the server through the PXE network;
[0067] The server returns the corresponding boot image to the computer according to the boot request;
[0068] The computer receives the boot image and enters the WinPE environment;
[0069] The computer requests the pre-installed image from the server in the WinPE environment;
[0070] The preinstalled image returned by the computer deployment server.
[0071] In this embodiment, the WDS component is a component of the Windows server operating system. The method can use the WDS component to deploy a Windows image through a local area network without using a traditional CD or DVD to deploy the operating system.
[0072] PXE (Preboot Execute Environment) works in Client / Server network mode, supports computers to download images from servers through LAN, and boot the operating system through LAN. During the boot process, the computer requires the DHCP service in the LAN to assign an IP address to it, and uses TFTP (trivial file transfer protocol) or MTFTP (multicast trivial file transfer protocol) to download and execute the boot image.
[0073] The WinPE environment is a basic operating system simplified based on the Windows operating system. In the WinPE environment, the computer can perform basic operations such as system installation, file copying, and disk repair.
[0074] In this embodiment, the operating system of the server can be Windows 2019R2x64. The server can be deployed on a virtual machine. When deploying the server, this method needs to assign a fixed IP address to the server.
[0075] In this embodiment, the Windows ADK, a Windows toolkit, is required to build a boot image, and the Windows pre-installation environment in the Windows ADK is mainly used.
[0076] In this embodiment, the method creates a new user dedicated to remote installation on the server, creates a new folder named "Remote Installation" and shares it, and sets the permissions to allow the user to read and write. The function of this folder is to store various script files, image files and installation software. For example, the folder "Remote Installation" also includes a Win10pe folder, an installation image folder, a script folder, a pre-installed image folder, and a pre-installed software folder.
[0077] 1) The Win10pe folder stores the winpe boot image according to the architecture version. This folder is established to facilitate the unified management of boot images of various versions. If the boot image is of amd64 version, you need to export the boot image from the original C:\win10pe\media\sources\ folder. This method can export boot.wim as deploy_client.wim and modify the image title to "deploy_client". It automatically optimizes the image to reduce the size of the image file.
[0078] 2) The installation image folder is used to store various required operating system images and installation answer files. For example, Windows 10 (x64 / x86) Enterprise Edition and Windows Server 2019R2 can be stored. The installation image is copied from the source\install.wim file in the installation CD of each system. The installation answer file is a text file that realizes automatic installation and customization of the operating system during the installation process.
[0079] 3) The pre-installation image folder stores the image files and execution scripts captured from the template computer. The pre-installation image folder can have Installprep subfolders and Win10x64 pre-installation image folders. ① The Installprep subfolder contains various scripts and execution files that need to be executed after the pre-installation image file is applied to the hard disk and the system is restarted to enter the system deployment phase. ② Win10x64 pre-installation image: This folder contains the pre-installation image of win10x64 Enterprise Edition
[0080] 4) The script folder stores the scripts to be run after the winpe boot image is started. The script is mainly used to capture and apply the image of the computer, install the operating system, run various auxiliary tools, and package the computer after the winpe boot image is started. There are mainly the following script files: deploy.cmd, packaging tool.cmd and DeployScripts folder. ① deploy.cmd is the main script file, which is the entry point after the winpe boot image is started. Other scripts and programs can be called through this entry point. This script involves some basic commands and parameters under DOS. The deploy.cmd script can be divided into three parts according to its function: a. Display part, that is, the part that is displayed on the screen for the user to see and let the user make a choice; b. The part that operates according to the user's choice. This part is that the user makes a choice according to the prompt of the first part, and the system executes the corresponding script or command according to the user's choice; c. End the operation. ② Packaging tool.cmd is used to package and capture various pre-installed images, including display part, selection part and execution part. ③The DeployScripts folder contains the Windows Deployment Service installation files, deploy_app.cmd, and DeploySys folder. The Windows Deployment Service installation files are mainly used to generate scripts used to deploy images. There are two script files in the DeploySys folder: scripts starting with "deploy" and "copyfile.cmd". The script starting with "deploy" is a script template used to deploy images. The "copyfile.cmd" script is used to copy the script generated by the Windows Deployment Service from "X:\DeployScripts\" to "C:\installprep".
[0081] In this embodiment, the production of a pre-installed image requires an operating system, Windows Image Manager, WinntSetup, and a client information distribution tool, wherein the operating system of the template computer can be Windows 10 (x86 / x64) Enterprise Edition. Windows Image Manager is one of the components of Windows ADK and is used to produce unattended installation files. WinntSetup is a system installer that has a complete and user-friendly interface, supports running in Windows and PE environments, and allows users to perform personalized operations such as optimizing system performance, integrating drivers, enabling third-party theme support, and adding unattended automatic response files before the system is installed. Client Information Distribution Tool c:\installprep\addbgi.exe: used to assign client IP addresses and modify desktop wallpapers, and the programming software used is VB.Net. The production process includes:
[0082] 1. Open the Windows 10ISO installation image on the server, copy "sources\install.wim" and "sources\install_Windows 10ENTERPRISE.clg" to the "C:\Remote Installation\Installation Image" folder, and rename the install.wim file to install_windows10x64ent.wim according to the architecture.
[0083] 2. Create an unattended installation file. The so-called "unattended installation" means that all related setting operations are automated when installing the operating system. To achieve this effect, you need to use an "answer file" during installation. An answer file is an XML file that contains the setting definitions and values to be used during the installation of the Windows operating system. In the answer file, you can specify various installation options. These options include how to partition the disk, find the location where the Windows image is to be installed, and the product key to be applied. You can also specify the values applied to the Windows installation. The tool for creating an answer file is Windows Image Manager.
[0084] 3. Create a pre-installation image, including the following steps:
[0085] 1) In order to facilitate production and later management, this method uses a virtual machine (i.e., a template computer) to create an image. The virtual machine name is "Windows 10x64 Maintenance Client Image", the operating system is "Microsoft Windows 10 (64-bit)", the network is "VM Public", the memory is 4GB, and the hard disk is 80GB (thin provisioning). After generating the virtual machine, you should also pay attention to adjusting the configuration of the virtual machine and delete the floppy disk drive and DVD drive.
[0086] 2) Start the template computer. Since the template computer is a brand new virtual machine and there is no boot information on the hard disk, the system will automatically enter PXE boot.
[0087] 3) Install the operating system and related software for the virtual machine, including:
[0088] ① Partition the virtual machine disk. Use the diskpart command to manually partition. Select "4. Exit the program", run the command "diskpart", and enter the partition command window to partition.
[0089] ②After the partitioning is completed, exit diskpart, run the "deploy" command to re-enter the selection menu, select "2. Install the operating system", install the image file location: "Y:\Installation Image\install_windows10x64ent.wim", select "C:" for the installation disk location, select "Y:\Installation Image\Autounattend_windows10x64ent.xml" for the unattended file, click the "Optimize Adjustment" button to make some optimizations, and click OK to start the installation.
[0090] 4) Capture the installed and debugged image as a pre-installation image, including:
[0091] ①Copy the installprep folder on the WDS server to C:\,
[0092] ②Execute the sysprep.cmd command to start packaging the system. After the packaging is completed, the operating system will automatically shut down.
[0093] ③ After packaging is completed, the operating system is captured as a pre-installed image. The specific steps are: after the operating system is turned on, boot to the deployment interface in the server through the PXE network, select "7. Packaging tool" to start packaging. After the pre-installed image is captured, it is saved in the temp folder under each image folder by default, so that when the image file is re-made, the deployment of the existing image will not be affected, and misoperation can be prevented.
[0094] In this embodiment, after the computer is started, it initiates a startup request to the server through the PXE network, and the server returns the corresponding startup image to the computer according to the startup request; the computer receives the startup image and enters the WinPE environment. Then the computer requests the server for a pre-installation image in the WinPE environment, and the computer deploys the pre-installation image returned by the server.
[0095] The method for deploying an operating system for a general-purpose computer in a local area network realizes the function of deploying a customized operating system in batches on general-purpose computers in a local area network environment, does not require a special installation medium, and overcomes the closed nature of fat client technology.
[0096] Furthermore, in some embodiments, after the server deploys the WDS component, the method further includes:
[0097] Configure the VLAN interface and DHCP service of the switch in the LAN; each VLAN interface is associated with a DHCP address pool; the DHCP address pool is used to provide IP addresses and server addresses for computers when the computers corresponding to the VLAN interface enter the PXE environment.
[0098] In this embodiment, the local area network can be composed of at least one core switch and multiple access switches. The method requires the configuration of the VLAN port and DHCP service of the core switch. Each VLAN port is associated with a DHCP address pool. The DHCP address pool mainly provides the computer with an IP address, a server address and a startup file when the computer in the corresponding VLAN boots into the PXE environment. For example, the configuration of the DHCP address pool is: gateway-list abcd; network abc0mask255.255.255.0; dns-list yyyy. The server address is configured as: next-server xxxx, and the server address is used for the computer to download the image from this address. Option is an option provided by the DHCP service. Option 60 sets the manufacturer classification information option, which is used to identify the type and configuration of the DHCP service. The startup file guides the call of the startup image. The PXE service first calls the startup file, and the startup file then guides the startup image. Option 67 is used to specify the startup file name assigned to the client.
[0099] Since the WDS component uses certain features of the DHCP service, the switch port to which the server is connected must have DHCP Snooping enabled. DHCP Snooping is a security feature of the DHCP service, mainly used on access layer switches, to shield illegal DHCP servers in the access network. The specific process is to execute "DHCP Snooping enable" on the access layer switch to enable this function. Execute dhcpsnooping enable, interface GigabitEthernet1 / 0 / 1, dhcp snooping trusted on the interface to which the legitimate DHCP server is connected, indicating that this interface can send DHCP response packets.
[0100] Furthermore, in some embodiments, after the server deploys the WDS component, the method further includes:
[0101] Create a network IP address pool table, department classification dictionary table, and computer name table on the server;
[0102] The network IP address pool table includes the computer's IP address, MAC address, last login time, gateway or machine serial number;
[0103] The department classification dictionary table includes the name information of the department;
[0104] The computer name table includes the computer name and MAC address of the computer.
[0105] In this embodiment, in order to facilitate the server to manage the client, the server can create a network IP address pool table, a department classification dictionary table and a computer name table in the Sqlserver database.
[0106] The network IP address pool table mainly stores the IP address, MAC address, last login time, gateway, machine serial number and other information of all computers. For example, according to the VLAN divided by the network, a row of data is pre-assigned to each 254 address in each VLAN, that is, each VLAN has 254 rows of data in this table. Each row of data may include: serial_no: data serial number; vlanid: VLAN ID to which the IP address belongs; vlan_gateway: VLAN gateway; computer_id: IP address serial number, from 1 to 254; computer_name: computer name using this IP; ipaddress: IP address; first_ip: the first IP in the VLAN address pool; last_ip: the last IP in the VLAN address pool; enter_date: the activation date of this IP; last_login_date: the last login date of this IP. If the time is longer than the current time, it means how long this computer has not logged in; mac_address: the MAC address of the computer using this IP; operating_system: the operating system used by the computer; machine_serial_no: the host serial number of the computer; machine_type: host model. When a computer uses an IP address in the network IP address pool table, it needs to save its computer_name and MAC address to the data row corresponding to the IP address, indicating that the IP address has been occupied. This method can enter the computer's MAC address and the gateway to which it belongs to find an available IP address.
[0107] The departmental classification dictionary table mainly stores the name information of the first and second-level departments. For example, the departmental classification dictionary table includes: serial_no: data serial number; parent_dept: first-level department name; dept_name: second-level department name; computer_name_prefix: department computer naming prefix; stop_date: stop date.
[0108] The computer name table mainly stores the computer names and MAC addresses of all computers. For example, the computer name table includes: serial_no: data serial number; computer_name_prefix: secondary department computer naming prefix; computer_id: secondary department computer serial number, the default serial number of each secondary department is from 1 to 254; computer_name: secondary department computer name; enter_date: computer name activation date, the default is empty; free_name: computer name activation flag, the default is 1 for unoccupied, 0 for occupied; mac_address: computer Mac address; last_login_date: last login date. The computer name table can pre-allocate 254 rows of data to each secondary department, that is, pre-allocate 254 computer names. The default computer name naming method is "naming prefix" plus serial number, that is, from "prefix 001" to "prefix 254". When a computer uses one of the computer names, its MAC address needs to be saved in the data row corresponding to the computer name, and the enter_date column and free_name column need to be modified to indicate that the computer name has been enabled. This method allows you to enter the computer's MAC address and computer name prefix to search for available computer names.
[0109] Further, in some embodiments, the computer requests the server to pre-install the image in the WinPE environment specifically including:
[0110] The computer boots to Windows Deployment Services in the PXE environment;
[0111] The computer receives a client template selected in Windows Deployment Services; wherein each client template is associated with a preinstalled image;
[0112] The computer gets the preinstalled image returned by the server based on the client template.
[0113] In this embodiment, after the computer is turned on, it starts to the Windows deployment service through the PXE network. Figure 2, select "1. Deploy Windows maintenance client" on the homepage and enter "Deploy system client". Then Windows Deployment Service enters the "Select Image" interface. Each client template in the "Select Image" interface corresponds to a script file in the DeploySys folder. For example, the script file corresponding to "New deployment of Windows 10x64 UEFI client" is "deploy_win10_x64_uefi_new.cmd". After the selection is completed, the computer obtains the pre-installed image returned by the server based on the client template, copies the script file of the pre-installed image to "X:\DeployScripts", and renames it to "deploy_wim.cmd".
[0114] Furthermore, in some embodiments, the pre-installation image returned by the computer deployment server specifically includes:
[0115] The computer receives the disks and partitions selected for deployment in Windows Deployment Services;
[0116] The computer receives the department and computer name selected in Windows Deployment Services;
[0117] The computer receives the optional software selected in Windows Deployment Services;
[0118] The computer deploys a preinstalled image based on the selected disk, partition, department, computer name, and optional software.
[0119] In this embodiment, after the computer selects the client template, it is also necessary to "select disk partitions", that is, select the disk and partition to be deployed. This method generates a disk processing script based on the selected disk partition. Figure 3 If the disk partition selected by the user is "New Deployment Image", the disk processing script will clear the selected disk and automatically partition it according to the capacity of the disk. If the selected disk partition is "Deployment Image Only", the disk processing script formats the specified partition of the disk. At this time, the computer will generate two text files in the "X:\DiskpartScripts\" directory: the first text removeallletter.txt and the second text newdisk.txt. These two text files are script files of the diskpart command. The function of the first text is to delete the drive letters of all disk partitions before deploying the system. Because some computers have multiple disks, when a disk is selected to deploy the system, the drive letters of all disk partitions need to be deleted to prevent misoperation during system deployment and overwriting the data of irrelevant disk partitions. The function of the second text is to repartition the selected disk according to capacity.
[0120] Next, Windows Deployment Services enters the "Select Computer Name" interface, where you can select the computer name of the computer. For example, see Figure 4 , this interface can display the departmental hierarchical dictionary table of the unit in the tree window on the left, including first-level departments, second-level departments, and so on. The table on the right shows all the computer names in each department, and the corresponding data table is the computer name table. When selecting a computer name, first select the department to which the computer belongs on the left. After selecting the department, all the computer names in this department will be displayed in the table on the right. Click the "New Computer" button to find an unused computer name in the table. If a computer name has been used by a computer, but this computer has not been logged in for a long time, then after a certain period of time, this computer name can be selected by the user again. If the system has been deployed on this computer before, the user can select the previously used computer name or use a new computer name.
[0121] Next, the method generates a modification script file Rename.cmd in the "X:\DeployScripts" directory. The modification script file calls the Windows management tool wmic to modify the computer name, and modifies the system registry of the deployed computer to add a one-time command line C:\installprep\first_login.cmd.
[0122] Next, select the first login operation. Users can select the script or optional software to be executed when the computer logs in for the first time according to actual needs. This method can generate the first login operation script "first_login.cmd" in the "X:\DeployScripts" directory. The first login operation script is used to run the specified script and optional software when the computer logs in for the first time. Figure 5 Optional software is applications that cannot be pre-packaged into the pre-installed image, including LIS plug-ins, Yinglian Cloud plug-ins, etc.
[0123] Next, the system executes "X:\DeployScripts\deploy_wim.cmd" to start deployment. At this time, there are three script files "deploy_wim.cmd", "ReName.cmd", and "first_login.cmd" in the X:\DeployScripts directory. When the system deployment is finished, "Y:\scripts\DeployScripts\DeploySYS\copyfile.cmd" will be executed to copy the files in the X:\DeployScripts directory to the C:\installprep directory. After restarting, the system starts to enter the recovery state.
[0124] After the system deployment is completed, the computer enters the desktop and automatically executes c:\installprep\addbgi.exe. This program has two functions: 1. When logging into the system for the first time, it searches for an available IP address from the network IP address pool table based on the current automatically obtained IP address gateway, automatically modifies the computer's IP address to the found IP address, and writes the computer name, MAC address, system version, host serial number and other information into the network IP address pool table.
[0125] This method can also generate a picture based on the current computer screen size, see Figure 6 The computer name and IP address are in the lower right part of the picture. Set this picture as the computer's desktop background picture for easy management.
[0126] An operating system deployment system for a general-purpose computer in a local area network, comprising:
[0127] Server: used to deploy WDS components, build the computer's boot image, and return the corresponding boot image to the computer according to the boot request;
[0128] The template computer builds a pre-installed image and snaps it onto the server;
[0129] Computer: used to initiate a boot request to the server in the PXE environment, receive the boot image, and enter the WinPE environment; request a pre-installation image from the server in the WinPE environment and deploy the pre-installation image returned by the server.
[0130] Furthermore, in some embodiments, the core switch in the local area network is also used for:
[0131] Configure the VLAN interface and DHCP service of the switch in the LAN; each VLAN interface is associated with a DHCP address pool; the DHCP address pool is used to provide IP addresses and server addresses for computers when the computers corresponding to the VLAN interface enter the PXE environment.
[0132] Furthermore, in some embodiments, the server is also used for:
[0133] Install the Sqlserver database on the server, create a network IP address pool table, a department classification dictionary table, and a computer name table;
[0134] The network IP address pool table includes the computer's IP address, MAC address, last login time, gateway or machine serial number;
[0135] The department classification dictionary table includes the name information of the department;
[0136] The computer name table includes the computer name and MAC address of the computer.
[0137] Furthermore, in some embodiments, the computer is specifically used to:
[0138] Boot to Windows Deployment Services in a PXE environment;
[0139] Receiving a client template selected in Windows Deployment Services; wherein each client template is associated with a preinstalled image;
[0140] Gets the preinstalled image returned by the server based on the client template.
[0141] Furthermore, in some embodiments, the computer is specifically used to:
[0142] Receive the disks and partitions selected for deployment in Windows Deployment Services;
[0143] Receive the department and computer name selected in Windows Deployment Services;
[0144] Receive optional software selected in Windows Deployment Services;
[0145] Deploy preinstalled images based on selected disks, partitions, departments, computer names, and optional software.
[0146] The system provided in the embodiment of the present invention is briefly described. For matters not mentioned in the embodiment part, reference may be made to the corresponding contents in the aforementioned embodiment.
[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A method for deploying an operating system of a general-purpose computer in a local area network, characterized in that: include: Deploy WDS components on the server; The server builds the computer's boot image; The template computer builds a pre-installed image and snaps it onto the server; The computer initiates a startup request to the server in the PXE environment; The server returns a corresponding startup image to the computer according to the startup request; The computer receives the boot image and enters the WinPE environment; The computer requests the pre-installation image from the server in the WinPE environment; The preinstalled image returned by the computer deployment server.
2. The method for deploying an operating system of a general-purpose computer in a local area network according to claim 1, characterized in that: After the WDS components are deployed on the server, the following are also included: Configure the VLAN interface and DHCP service of the switch in the local area network; each VLAN interface is associated with a DHCP address pool; the DHCP address pool is used to provide IP addresses and server addresses for computers when the computer corresponding to the VLAN interface enters the PXE environment.
3. The method for deploying an operating system of a general-purpose computer in a local area network according to claim 1, characterized in that: After the WDS components are deployed on the server, the following are also included: Install the Sqlserver database on the server and create a network IP address pool table, department classification dictionary table, and computer name table; The network IP address pool table includes the computer's IP address, MAC address, last login time, gateway or machine serial number; The department classification dictionary table includes the name information of the department; The computer name table includes the computer name and MAC address of the computer.
4. The method for deploying an operating system of a general-purpose computer in a local area network according to claim 1, characterized in that: The computer requests the server to pre-install the image in the WinPE environment, including: The computer boots to Windows Deployment Services in the PXE environment; The computer receives a client template selected in Windows Deployment Services; wherein each client template is associated with a preinstalled image; The computer obtains the pre-installation image returned by the server according to the client template.
5. The method for deploying an operating system of a general-purpose computer in a local area network according to claim 3, characterized in that: The preinstalled images returned by the computer deployment server include: The computer receives the disks and partitions selected for deployment in Windows Deployment Services; The computer receives the department and computer name selected in Windows Deployment Services; The computer receives the optional software selected in Windows Deployment Services; The computer deploys the preinstalled image according to the selected disk, partition, department, computer name, and optional software.
6. An operating system deployment system for a general-purpose computer in a local area network, characterized in that: include: Server: used to deploy WDS components, build the computer's boot image, and return the corresponding boot image to the computer according to the boot request; Template computer: used to build pre-installed images and capture them on the server; Computer: used to initiate a boot request to the server in the PXE environment, receive the boot image, and enter the WinPE environment; In the WinPE environment, request a pre-installation image from the server and deploy the pre-installation image returned by the server.
7. The operating system deployment system for general-purpose computers in a local area network according to claim 6, characterized in that: The core switch in the LAN is used for: Configure the VLAN interface and DHCP service of the switch in the local area network; each VLAN interface is associated with a DHCP address pool; the DHCP address pool is used to provide IP addresses and server addresses for computers when the computer corresponding to the VLAN interface enters the PXE environment.
8. The operating system deployment system for general-purpose computers in a local area network according to claim 6, characterized in that: The server is also used to: Install the Sqlserver database on the server, create a network IP address pool table, a department classification dictionary table, and a computer name table; The network IP address pool table includes the computer's IP address, MAC address, last login time, gateway or machine serial number; The department classification dictionary table includes the name information of the department; The computer name table includes the computer name and MAC address of the computer.
9. The operating system deployment system for general-purpose computers in a local area network according to claim 6, characterized in that: Computers are specifically used for: Boot to Windows Deployment Services in a PXE environment; Receive the client template selected in Windows Deployment Services; Each client template is associated with a pre-installed image; Obtain a pre-installed image returned by the server according to the client template.
10. The operating system deployment system for general-purpose computers in a local area network according to claim 8, characterized in that: Computers are specifically used for: Receive the disks and partitions selected for deployment in Windows Deployment Services; Receive the department and computer name selected in Windows Deployment Services; Receive optional software selected in Windows Deployment Services; The preinstallation image is deployed according to the selected disk, partition, department, computer name, and optional software.
