Windows account remote management method, device and storage medium
Through the three-layer architecture of Windows account management method, it solves the problems of low efficiency and insufficient security of traditional account management methods, realizes remote account management and data security, and improves management efficiency and security.
Patent Information
- Application Number
- CN201910885669.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-09-19
AI Technical Summary
The traditional Windows account management method requires manual operations by local administrators, resulting in cumbersome operations and low efficiency. It is impossible to remotely add, delete users, or change passwords, which affects management efficiency and poses data security risks.
A three-layer architecture (calling layer, agent layer, bottom layer) is used to realize the connection between the client and the local Windows host. Account addition, deletion, password modification and remote login are implemented through instructions and programs. The agent layer is deployed in the private network to prevent data steal.
It improves the efficiency of Windows account management, enables account management anytime and anywhere, enhances data security, and prevents outsiders from stealing important data.
Smart Images

Figure CN110727490B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Windows account management, and in particular to a Windows account remote management method, device and computer-readable storage medium. Background Art
[0002] Remote control refers to the administrator connecting to the controlled computer through remote dial-up or Internet access, and displaying the desktop environment of the controlled computer on his own computer. The administrator can configure, install software programs, modify, and remotely access the remote computer through the local computer. Remote control can usually be performed through the Internet. The computer located in a different place is the end that sends the control instructions, called the master terminal or client terminal, and the controlled computer located locally is called the controlled terminal or server terminal. "Remote" does not mean "far". The master terminal and the controlled terminal can be located in the same room of the same local area network, or two or more computers connected to the Internet at any location.
[0003] In the traditional remote login method, before remotely controlling the controlled host, the local administrator must first manually log in to the controlled host, and then log in and access the host through the remote login method. This method is not only cumbersome and inefficient, but also seriously wastes human resources.
[0004] In addition, in order to prevent important information of local enterprises from being stolen, many applications of local enterprises are set up in the internal network, which cannot be directly reached by the network of external users. However, users have a strong demand to use these internal applications, and local enterprises also hope to provide some local application services to external customers while ensuring the data security of the local host, thereby increasing the benefits of local enterprises.
[0005] In addition, since there are many users accessing the local enterprise host, and different users need to access different application services on the local host, it is necessary to create different accounts for different users and configure only the corresponding application services for each account. However, the addition, deletion, and password modification of traditional Windows accounts are all done manually by the local administrator, and it is not possible to automatically add Windows accounts to the local host according to the wishes of remote users, let alone add or delete Windows users or modify passwords anytime and anywhere, which seriously affects the efficiency of local Windows account management.
[0006] Based on the above problems, there is an urgent need for a Windows account management method that can realize adding, deleting, changing passwords and remotely logging in to a local Windows host anytime and anywhere. Summary of the invention
[0007] The present invention provides a Windows account remote management method, an electronic device and a computer storage medium, the main purpose of which is to achieve the connection between a client and a local Windows host by establishing a three-layer architecture including a call layer, a proxy layer and a bottom layer, and to achieve account addition, deletion, password modification and remote login of the local Windows host by setting corresponding instructions and programs in the call layer, the proxy layer and the bottom layer. In addition, by deploying the proxy layer in a proprietary network, it is possible to effectively prevent outsiders from stealing important data information on the local Windows host.
[0008] To achieve the above object, the present invention provides an electronic device, which includes: a memory, a processor, and a Windows account remote management program stored in the memory and executable on the processor, wherein the Windows account remote management program implements the following steps when executed by the processor:
[0009] At the call layer, command information is obtained based on the client's access event;
[0010] Generate control instructions and data parameters according to the instruction information at the calling layer;
[0011] The control instruction and the data parameter are sent from the calling layer to the bottom layer after being transferred by the proxy layer;
[0012] A command execution program is generated at the bottom layer according to the control instruction and the data parameter, so that the local Windows host can execute the command execution program and realize remote management of the local Windows host account.
[0013] Preferably, the calling layer, the proxy layer and the bottom layer together constitute a Windows account management framework, wherein the calling layer is deployed in a server connected to the Internet of the client, the proxy layer is deployed in a dedicated network, and the bottom layer is deployed in the local Windows host;
[0014] A command generation program is deployed in the call layer, and a command transfer program is deployed in the proxy layer.
[0015] The call layer generates the control instruction and the data parameter based on the command generation program according to the instruction information, and the proxy layer sends the control instruction and the data parameter to the bottom layer based on the command transfer program.
[0016] Preferably, the dedicated network is a dedicated line connection between the calling layer and the bottom layer;
[0017] The information transmission mode of the dedicated network is unidirectional transmission.
[0018] Preferably, the instruction information includes user management type and user management data; wherein the user management type is divided into four categories: user addition type, user deletion type, password modification type and remote login type, and the user management data includes application name, login name, login password and new password;
[0019] Among them, different user management types correspond to different user management data;
[0020] At the calling layer, corresponding control instructions and data parameters are generated according to the user management type, and at the bottom layer, corresponding command execution programs are generated according to the control instructions and data parameters, so that the local Windows host can execute the command execution programs and perform corresponding remote management on the local Windows host account.
[0021] Preferably, if the user management type is a user added type, the user management data is an application name;
[0022] Generate a user adding control instruction according to the user adding type at the calling layer, and generate an initial user name and an initial password as data parameters according to the application name;
[0023] Generate a user adding command execution program at the bottom layer according to the user adding control instruction, the initial user name and the initial password, so that the local Windows host executes the user adding command execution program to generate an account with the initial user name as the user name and the initial password as the password;
[0024] If the user management type is a user deletion type, the user management data is a login name and a login password;
[0025] Generate a user deletion control instruction at the calling layer according to the user deletion type, and use the login name and the login password as the data parameters;
[0026] Generate a user deletion command execution program at the bottom layer according to the user deletion control instruction, the login name and the login password, so that the local Windows host executes the user deletion command execution program to find an account matching the login name and the login password and delete the account;
[0027] If the user management type is a password modification type, the user management data includes a login name, a login password, and a new password;
[0028] Generate a password modification control instruction at the calling layer according to the password modification type, and use the login name, the login password and the new password as the data parameters;
[0029] A password modification command execution program is generated at the bottom layer according to the password modification control instruction, the login name, the login password and the new password, so that the local Windows host executes the password modification command execution program to find an account that matches the login name and the login password and modify the password of the account according to the new password.
[0030] Preferably, a remote login channel is provided between the local Windows host and the client;
[0031] If the user management type is a remote login type, the user management data is a login name and a login password;
[0032] Generate a remote login control instruction according to the remote login type at the calling layer, and set the login name and the login password as the data parameters;
[0033] A remote login command execution program is generated at the bottom layer according to the remote login control instruction, the login name and the login password, so that the local Windows host executes the remote login command execution program to log in to the account matching the login name and the login password and open the remote login channel; wherein the remote login channel is used for the client to realize remote login and access to the local Windows host.
[0034] Preferably, an encrypted network transmission protocol is provided in the remote login channel, the encrypted network transmission protocol is related to the login name and the login password, and the remote login channel is used for the client to remotely log in to and access the local Windows host according to the login name and the login password.
[0035] Preferably, the instruction information further includes a protocol type, and the protocol type is related to an application service provided by the local Windows host;
[0036] If the user management type is user adding type;
[0037] generating a user adding control instruction according to the user adding type at the calling layer, and generating an initial user name and an initial password as data parameters according to the application name and the protocol type;
[0038] A user adding command execution program is generated at the bottom layer according to the user adding type, the initial user name and the initial password, so that the local Windows host executes the user adding command execution program to generate an account with the initial user name as the user name and the initial password as the password, and configures application services related to the protocol type for the account.
[0039] In addition, to achieve the above purpose, the present invention also provides a Windows account remote management method, the method comprising:
[0040] At the call layer, command information is obtained based on the client's access event;
[0041] Generate control instructions and data parameters according to the instruction information at the calling layer;
[0042] The control instruction and the data parameter are sent from the calling layer to the bottom layer after being transferred by the proxy layer;
[0043] A command execution program is generated at the bottom layer according to the control instruction and the data parameter, so that the local Windows host can execute the command execution program and realize remote management of the local Windows host account.
[0044] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, which includes a Windows account remote management program. When the Windows account remote management program is executed by a processor, the steps in the aforementioned Windows account remote management method are implemented.
[0045] The Windows account remote management method, electronic device and computer-readable storage medium proposed in the present invention realize the connection between the client and the local Windows host by establishing a three-layer architecture including a call layer, a proxy layer and a bottom layer, and realize the account addition, deletion, password modification and remote login of the local Windows host anytime and anywhere by setting corresponding instructions and programs in the call layer, the proxy layer and the bottom layer, which significantly improves the efficiency of the local Windows account management work. In addition, by deploying the proxy layer in a proprietary network, it can effectively prevent outsiders from stealing important data information on the local Windows host. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a preferred embodiment of the electronic device provided by the present invention;
[0047] Figure 2 A flowchart of a preferred embodiment of the Windows account remote management method provided by the present invention;
[0048] Figure 3 A data access schematic diagram of the Windows account remote management method provided by the present invention;
[0049] Figure 4 A schematic diagram of modules within the Windows account remote management program provided by the present invention.
[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0052] The present invention provides a Windows account remote management method, which is applied to an electronic device 70. Figure 1 As shown, this figure is a schematic structural diagram of a preferred embodiment of the electronic device 70 provided by the present invention.
[0053] In this embodiment, the electronic device 70 may be a terminal device with computing functions, such as a server, a smart phone, a tablet computer, a portable computer, or a desktop computer.
[0054] The electronic device 70 includes a processor 71 and a memory 72 .
[0055] The memory 72 includes at least one type of readable storage medium. The at least one type of readable storage medium may be a non-volatile storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory, etc. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 70, such as a hard disk of the electronic device 70. In other embodiments, the readable storage medium may also be an external memory of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 70, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc.
[0056] In this embodiment, the readable storage medium of the memory 72 is generally used to store the Windows account remote management program 73 installed in the electronic device 70. The memory 72 can also be used to temporarily store data that has been output or is to be output.
[0057] In some embodiments, the processor 72 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 72, such as the Windows account remote management program 73.
[0058] In some embodiments, the electronic device 70 is a terminal device such as a smart phone, a tablet computer, a portable computer, etc. In other embodiments, the electronic device 70 may be a server.
[0059] Figure 1 Only an electronic device 70 having components 71 - 73 is shown, but it is understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0060] Optionally, the electronic device 70 may also include a user interface, which may include an input unit such as a keyboard, a voice input device such as a microphone and other devices with voice recognition function, a voice output device such as a speaker, headphones, etc. Optionally, the user interface may also include a standard wired interface or a wireless interface.
[0061] Optionally, the electronic device 70 may further include a display, which may also be referred to as a display screen or a display unit. In some embodiments, it may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an organic light-emitting diode (OLED) touch device. The display is used to display information processed in the electronic device 70 and to display a visual user interface.
[0062] Optionally, the electronic device 70 may further include a touch sensor. The area provided by the touch sensor for the user to perform a touch operation is called a touch control area. In addition, the touch sensor here may be a resistive touch sensor, a capacitive touch sensor, etc. Moreover, the touch sensor includes not only a contact touch sensor, but also a proximity touch sensor, etc. In addition, the touch sensor may be a single sensor or a plurality of sensors arranged in an array, for example.
[0063] In addition, the area of the display of the electronic device 70 can be the same as or different from the area of the touch sensor. Optionally, the display and the touch sensor are stacked to form a touch display screen. The device detects touch operations triggered by the user based on the touch display screen.
[0064] Optionally, the electronic device 70 may also include a radio frequency (RF) circuit, a sensor, an audio circuit, etc., which will not be described in detail here.
[0065] In addition, to facilitate understanding of the present invention, the present invention also provides a flowchart of a preferred embodiment of the Windows account remote management method (eg Figure 2As shown) and the access route diagram in the Windows account remote management method (as shown Figure 3 shown).
[0066] exist Figure 1 In the device embodiment shown, the memory 72 as a computer storage medium may include an operating system and a Windows account remote management program 73; when the processor 71 executes the Windows account remote management program 73 stored in the memory 72, the following steps are implemented:
[0067] S110: When the client accesses the calling layer, the calling layer obtains the user's instruction information based on the access event of the client; wherein the calling layer is deployed in a server connected to the client through the Internet.
[0068] In order to facilitate the calling layer to obtain the user's instruction information, the calling layer can establish a service website on the Internet. The customer can achieve human-computer interaction by using the client to access the service website and enter the corresponding instruction information in the corresponding position of the website according to his own needs. The calling layer obtains the instruction information entered by the customer through the website, wherein the client terminal can be a mobile phone, PAD, personal computer, etc.
[0069] Specifically, the instruction information may include user management type and user management data, wherein the user management type is related to the type of remote account management that the user wants to perform on the local Windows host, and mainly includes four categories: user addition, user deletion, password modification, and remote login. The user management data is the relevant data required for one or several types of remote account management operations that the user wants to perform on the local Windows host, including application name, login name, login password, and new password, wherein the application name is a one-end character string (such as zhangsan) set by the new user to add an account of his own on the local Windows host, the login name and login password are the data required by the old user to log in to the local Windows host, and the new password is used by the user to modify the password of the account on the local Windows host.
[0070] It should be noted that different user management types correspond to different user management data. For example, if the user management type is user addition type, the user management data is the application name; if the user management type is user deletion type, the user management data is the login name and login password; if the user management type is password modification type, the user management data is the login name, login password and new password; if the user management type is remote login type, the user management data is the login name and login password.
[0071] S120: Generate control instructions and data parameters according to the instruction information at the calling layer.
[0072] Specifically, at the calling layer, different types of control instructions are generated according to the specific type of the user management type, and data parameters matching the control instructions are generated according to the user management data.
[0073] For example, when the user management type is the user addition type and the user management data is the application name, a user addition control instruction will be automatically generated at the calling layer according to the user addition type, and an initial user name and initial password matching the application name will be automatically generated as data parameters according to the application name.
[0074] For example, if the application name is zhangsan, a combination of a number and the application name (similar to 1zhangsan556) is automatically generated at the calling layer as the initial user name (this initial user name is not the same as the existing user name), and then an initial password composed of letters, numbers, and special symbols is automatically generated (similar to ADKD#5623).
[0075] When the user management type is the user deletion type and the user management data is the login name and login password, a user deletion control instruction is automatically generated at the call layer according to the user deletion type, and the login name and login password are used as data parameters matching the user deletion control instruction.
[0076] When the user management type is the password modification type and the user management data is the login name, login password and new password, a password modification control instruction is automatically generated at the calling layer according to the password modification type, and the login name, login password and new password are used as data parameters matching the password modification instruction.
[0077] When the user management type is a remote login type and the user management data is a login name and a login password, a remote login control instruction is automatically generated at the call layer according to the remote login type, and the login name and the login password are set as data parameters matching the remote login control instruction.
[0078] S130: At the calling layer, the control instruction and the data parameters are first sent to the proxy layer, and the control instruction and the data parameters matching the control instruction are forwarded by the proxy layer and then sent to the bottom layer; wherein the proxy layer is deployed in a server in a private network, and the bottom layer is deployed in a local Windows host to be managed.
[0079] Specifically, the calling layer, the proxy layer and the bottom layer together constitute the Windows account management framework. A command generation program is deployed in the calling layer, and a command transfer program is deployed in the proxy layer. The calling layer generates control instructions and data parameters based on the command generation program according to the instruction information, and the proxy layer sends the control instructions and data parameters to the bottom layer based on the command transfer program. The instruction generation program, the command transfer program and the command execution generation program are all written in Java. Therefore, the calling layer, the proxy layer and the bottom layer only need to call the corresponding Java program to realize the automatic transmission of various information.
[0080] It should be noted that since the call layer is directly connected to the Internet, and the local Windows host stores a lot of important data information, by setting up a proxy layer as a transfer station between the call layer and the bottom layer, the call layer can be effectively isolated from the bottom layer, preventing others from taking the opportunity to steal important data information on the local host.
[0081] It should be further explained that a private network is different from the Internet. A private network is a dedicated line connection between two enterprises or servers. A dedicated line is a permanent dedicated telephone line connection between two points. Unlike a general dial-up connection, a dedicated line is always connected. The biggest advantage of this connection is security. Except for the two enterprises that are legally connected to the private network, no other person or enterprise can enter the private network. Therefore, the present invention realizes a dedicated line connection between the call layer and the bottom layer through a private network, and deploys a proxy layer in the private network to realize information transfer, which can effectively ensure the security and integrity of the information flow.
[0082] In addition, in order to further ensure the security and efficiency of local Windows user management, the transmission mode of the dedicated network can also be set to one-way transmission, that is, the information can only be transmitted from the call layer to the proxy layer, and can only be transmitted from the proxy layer to the bottom layer, and reverse information transmission is not allowed.
[0083] S140: Generate a command execution program at the bottom layer according to the control instruction and the data parameter, so that the local Windows host can execute the command execution program and realize remote management of the local Windows host account.
[0084] Specifically, different types of command execution programs are generated at the bottom layer according to different types of control instructions and data parameters.
[0085] For example, at the bottom layer, a user addition command execution program is generated according to the user addition control instruction, the initial user name and the initial password; at the bottom layer, a user deletion command execution program is generated according to the user deletion control instruction, the login name and the login password; at the bottom layer, a password modification command execution program is generated according to the password modification control instruction, the login name, the login password and the new password; at the bottom layer, a remote login command execution program is generated according to the remote login control instruction, the login name and the login password.
[0086] Furthermore, the local Windows host executes different types of command execution programs to perform different types of remote management on the local Windows host account.
[0087] For example, when the local Windows host executes the user add command, the execution program automatically generates an account with the initial user name as the user name and the initial password as the password; when the local Windows host executes the user delete command, the execution program automatically searches for an account that matches the login name and login password and deletes the account; when the local Windows host executes the password change command, the execution program automatically searches for an account that matches the login name and login password and changes the password of the account according to the new password.
[0088] The local Windows host executes the remote login command execution program to automatically log in to the account that matches the login name and login password and open the remote login channel; the client remotely logs in to and accesses the local Windows host through the remote login channel.
[0089] It should be noted that the remote login channel is usually closed. It will only open automatically after the local Windows host executes the remote login command execution program. When the user completes accessing the local Windows host, the remote login channel will be automatically closed. By setting up the remote login channel, the local Windows host can be isolated from the Internet at ordinary times. The remote login channel will only open when the user logs in remotely, which can prevent others from stealing important data information on the local Windows host through the Internet.
[0090] In addition, to further prevent others from stealing important data information on the local Windows host when the user accesses the local Windows host through the remote login channel, an encrypted network transmission protocol can also be set in the login management channel, such as the Secure Shell Protocol (SSH). The encrypted network transmission protocol is related to the login name and login password. The user uses the login name and login password as the protocol key to realize remote login and access to the local Windows host through the remote management channel.
[0091] In a preferred embodiment of the present invention, the instruction information may also include a protocol type, which is related to the application service provided by the local Windows host, such as big data service, special software application service, database access service, etc. Different protocol types correspond to different application services. Users can sign different protocol types on the service website according to the application services they need.
[0092] If the user management type is user addition type; the call layer generates a user addition control instruction according to the user addition type, and generates an initial user name and initial password as data parameters according to the application name and protocol type; the bottom layer generates a user addition command execution program according to the user addition type, initial user name and initial password; the local Windows host executes the user addition command execution program to automatically generate an account with the initial user name as the user name and the initial password as the password, and configures application services related to the protocol type for the account. It should be noted that only application services corresponding to the protocol type are configured on the account, which can not only save resources on the local Windows host, but also further prevent users from accessing some data information that is not related to them, thereby improving the security of local data information.
[0093] In addition, to facilitate user management, you can also set the corresponding remaining protocol time for different protocol types on the local Windows host. The remaining protocol time is automatically updated over time. When the remaining protocol time of the account matching the protocol type on the local Windows host reaches zero, the local Windows host automatically deletes the account.
[0094] In addition, a user information database can also be set up in the call layer. The user information database is used to store various types of user information, such as application name, user name, password, protocol type, and remaining time of the protocol, etc. When the call layer receives the acquired user instruction information, the call layer first updates the user information database according to the user instruction information, such as user addition, user deletion, password modification, etc. Then, control instructions and data parameters are generated according to the instruction information and sent to the proxy layer. In actual applications, users can access the user information database through the service website to query and view various types of their own information.
[0095] Furthermore, a remote login group can be set up on the local Windows host. The remote login group is a database similar to a user information database that contains all user names and passwords that can log in to the local Windows host. The remote login group will be updated in real time according to the execution of different types of command execution programs by the local Windows host. Setting up a remote login group not only facilitates remote management of Windows users, but also prevents the loss of user data information when the user information database at the call layer is damaged.
[0096] The electronic device 1 proposed in the above embodiment establishes a three-layer architecture including a call layer, a proxy layer and a bottom layer to realize the connection between the client and the local Windows host. By setting corresponding instructions and programs in the call layer, the proxy layer and the bottom layer, the account addition, deletion, password modification and remote login of the local Windows host can be realized anytime and anywhere, which significantly improves the efficiency of local Windows account management. In addition, by deploying the proxy layer in a proprietary network, it can effectively prevent outsiders from stealing important data information on the local Windows host.
[0097] In other embodiments, the Windows account remote management program 73 may be divided into one or more modules, one or more modules are stored in the memory 72 and executed by the processor 71 to implement the present invention. The module referred to in the present invention refers to a series of computer program instruction segments that can implement specific functions. Figure 3 As shown, Figure 1 Module diagram of a preferred embodiment of the Windows account remote management program 73 in FIG. The Windows account remote management program 73 can be divided into: an instruction information acquisition module 74, a control instruction and data parameter generation module 75, a command execution program generation module 76, and a command execution program execution module 77. The functions or operation steps implemented by modules 74-77 are similar to those above and will not be described in detail here. For example, for example:
[0098] The instruction information acquisition module 74 is used to acquire the user's instruction information based on the client's access event at the call layer; wherein the call layer is deployed in a server connected to the client's Internet.
[0099] The control instruction and data parameter generating module 75 is used to generate control instructions and data parameters according to instruction information at the calling layer; the calling layer sends the control instructions and data parameters to the bottom layer after being transferred by the proxy layer.
[0100] The command execution program generation module 76 is used to generate a command execution program according to the control instructions and data parameters at the bottom layer.
[0101] The command execution program execution module 77 is used for the local Windows host to execute the command execution program to realize the remote management of the local Windows host account.
[0102] In addition, the present invention also provides a Windows account remote management method. Figure 2 FIG. 1 is a flowchart of a preferred embodiment of the Windows account remote management method provided by the present invention. The method can be executed by a device, and the device can be implemented by software and / or hardware.
[0103] In this embodiment, the Windows account remote management method includes: Step S110 to Step S140.
[0104] S110: acquiring instruction information based on the access event of the client at the calling layer;
[0105] S120: Generate control instructions and data parameters according to instruction information at the calling layer;
[0106] S130: The control instructions and data parameters are sent from the calling layer to the bottom layer after being transferred through the proxy layer;
[0107] S140: Generate a command execution program at the bottom layer according to the control instruction and the data parameter, so that the local Windows host can execute the command execution program and realize remote management of the local Windows host account.
[0108] In addition, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a Windows account remote management program, and when the Windows account remote management program is executed by a processor, the following operations are implemented:
[0109] S110: acquiring instruction information based on the access event of the client at the calling layer;
[0110] S120: Generate control instructions and data parameters according to instruction information at the calling layer;
[0111] S130: The control instructions and data parameters are sent from the calling layer to the bottom layer after being transferred through the proxy layer;
[0112] S140: Generate a command execution program at the bottom layer according to the control instruction and the data parameter, so that the local Windows host can execute the command execution program and realize remote management of the local Windows host account.
[0113] The specific implementation of the computer-readable storage medium provided by the present invention is substantially the same as the specific implementation of the above-mentioned Windows account remote management method and electronic device, and will not be described in detail herein.
[0114] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.
[0115] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. Through the description of the above implementation modes, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation mode. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0116] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A Windows account remote management method, applied to an electronic device, characterized in that: The method comprises: At the call layer, command information is obtained based on the client's access event; Generate control instructions and data parameters according to the instruction information at the calling layer; The control instruction and the data parameter are sent from the calling layer to the bottom layer after being transferred by the proxy layer; A command execution program is generated at the bottom layer according to the control instruction and the data parameter, so that the local Windows host executes the command execution program and realizes remote management of the local Windows host account; wherein, The calling layer, the proxy layer and the bottom layer together constitute a Windows account management framework, wherein the calling layer is deployed in a server connected to the client Internet, the proxy layer is deployed in a private network, and the bottom layer is deployed in the local Windows host; the private network is a dedicated line connection between the calling layer and the bottom layer, and the information transmission mode of the private network is one-way transmission.
2. The Windows account remote management method according to claim 1, characterized in that: A command generation program is deployed in the call layer, and a command transfer program is deployed in the proxy layer. The call layer generates the control instruction and the data parameter based on the command generation program according to the instruction information, and the proxy layer sends the control instruction and the data parameter to the bottom layer based on the command transfer program.
3. The Windows account remote management method according to claim 1, characterized in that: The instruction information includes user management type and user management data; wherein the user management type is divided into four categories: user addition type, user deletion type, password modification type and remote login type; the user management data includes application name, login name, login password and new password; Among them, different user management types correspond to different user management data; At the calling layer, corresponding control instructions and data parameters are generated according to the user management type, and at the bottom layer, corresponding command execution programs are generated according to the control instructions and data parameters, so that the local Windows host can execute the command execution programs and perform corresponding remote management on the local Windows host account.
4. The Windows account remote management method according to claim 3, characterized in that: If the user management type is user added type, the user management data is the application name; Generate a user adding control instruction according to the user adding type at the calling layer, and generate an initial user name and an initial password as data parameters according to the application name; Generate a user adding command execution program at the bottom layer according to the user adding control instruction, the initial user name and the initial password, so that the local Windows host executes the user adding command execution program to generate an account with the initial user name as the user name and the initial password as the password; If the user management type is a user deletion type, the user management data is a login name and a login password; Generate a user deletion control instruction at the calling layer according to the user deletion type, and use the login name and the login password as the data parameters; Generate a user deletion command execution program at the bottom layer according to the user deletion control instruction, the login name and the login password, so that the local Windows host executes the user deletion command execution program to find an account matching the login name and the login password and delete the account; If the user management type is a password modification type, the user management data includes a login name, a login password, and a new password; Generate a password modification control instruction at the calling layer according to the password modification type, and use the login name, the login password and the new password as the data parameters; A password modification command execution program is generated at the bottom layer according to the password modification control instruction, the login name, the login password and the new password, so that the local Windows host executes the password modification command execution program to find an account that matches the login name and the login password and modify the password of the account according to the new password.
5. The Windows account remote management method according to claim 3, characterized in that: A remote login channel is set between the local Windows host and the client; If the user management type is a remote login type, the user management data is a login name and a login password; Generate a remote login control instruction according to the remote login type at the calling layer, and set the login name and the login password as the data parameters; A remote login command execution program is generated at the bottom layer according to the remote login control instruction, the login name and the login password, so that the local Windows host executes the remote login command execution program to log in to the account matching the login name and the login password and open the remote login channel; wherein the remote login channel is used for the client to realize remote login and access to the local Windows host.
6. The Windows account remote management method according to claim 5, characterized in that: An encrypted network transmission protocol is provided in the remote login channel, and the encrypted network transmission protocol is related to the login name and the login password. The remote login channel is used for the client to remotely log in to and access the local Windows host according to the login name and the login password.
7. The Windows account remote management method according to claim 4, characterized in that: The instruction information also includes a protocol type, and the protocol type is related to the application service provided by the local Windows host; If the user management type is user adding type; generating a user adding control instruction according to the user adding type at the calling layer, and generating an initial user name and an initial password as data parameters according to the application name and the protocol type; A user adding command execution program is generated at the bottom layer according to the user adding type, the initial user name and the initial password, so that the local Windows host executes the user adding command execution program to generate an account with the initial user name as the user name and the initial password as the password, and configures application services related to the protocol type for the account.
8. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a Windows account remote management program stored in the memory and executable on the processor. When the Windows account remote management program is executed by the processor, the steps of the Windows account remote management method as described in any one of claims 1 to 7 are implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a Windows account remote management program, and when the Windows account remote management program is executed by the processor, the steps of the Windows account remote management method according to any one of claims 1 to 7 are implemented.
