The computer software used by the office for monitoring was running incorrectly, and the manufacturer informed that the system had to be reinstalled. How do I implement a remote installation system at home, and after the system is installed, the computer continues to be controlled by me? 2:00 am & mdash; — machine room in recent days, in the home TeamViewer control office computer office. This evening, the computer in the office had a problem. There was no problem with the remote control, but the software was running incorrectly. The technician said that the system had a problem and needed to be reinstalled. But at this time it was already two in the morning, it was not realistic to go to the office, and time was tight. 2:05 am —— decided to reload after some thoughts, I decided to reinstall the system remotely. To install Windows software with one click, you only need to set it under Windows. After the computer starts, it will automatically use the ghost image file to install. 2:10 am —— custom image file because the office computer has not been backed up, you have to use a new ghost image file, but after reinstalling the system TeamViewer is gone, how to remote control? After thinking about it, I opened the software GhostExplorer.exe, modified a ghost image file at hand, and copied the installed TeamViewer folder to the c:\\program files inside the image file, so that the new system is installed. Have a TeamViewer file. 2:25 am —— making the boot menu batch new system installed, you must run TeamViewer to be controlled, it is hard to beat me, I wrote a batch a.bat, the content is a line of statements: " C:\\Program Files\\TeamViewer\\Version6\\TeamViewer.exe" --control "%1", the role is to start TeamViewer, this batch file is also put into the ghost package at hand. The location of this release is under the folder “C:\\Documents and Settings\\Administrator\\Start Menu\\Programs\\Startup”, which means that after the new system is installed, the batch will be automatically run after the startup is completed. , then you can start TeamViewer. 2:33 am —— Search for controlled passwords, make reg files considering that TeamViewer has a controlled password. If the system is reinstalled, the password set by the user is gone and it is still uncontrollable. Then only find the storage location of the TeamViewer user set password, and put it on the remote computer. After searching, I finally found the [TeamView] item in the registry (Figure 1). After testing, I found that the SecurityPasswordAES line is the password, so I exported it and saved it on the E drive, named tea.reg. Win7 hard disk installation tutorial: http://www.xp85.com/html/article-95-1613.html 2:42 am — — let the boot menu automatically import reg file If you put this file directly into the boot menu, then the system The registry will be automatically executed when booting, but this time it will not be imported, but an import dialog will pop up. If it is in the local operation, click OK, but the remote computer is not immune to me. Controlled, so it will get stuck at this step. How to do? I suddenly thought that the regedit.exe command has a parameter /s . If this parameter is added, there will be no prompts when importing the registry, import directly. So I added a statement to the batch file, and now the contents of a.bat become like this: regedit.exe /s "e:\\tea.reg""C:\\Program Files\\TeamViewer\\Version6 \\TeamViewer.exe" --control "%1" The first line imports the registry first, and the second line starts the Teamviewer controlled terminal. 2:50 am —— modify the batch again, set the delay, then I suddenly think of a system network delay problem. Batch commands are executed as soon as they enter the system. But the controlled machine has a higher grade and the boot speed is slower. After the XP is turned on, the network cannot be used immediately, and the initialization waits for a while. TeamViewer runs early and may generate errors due to lack of network. It is best to do some delay! The delay of batch commands is cumbersome and inaccurate. But it doesn't matter, I just need to extend it for a while. After repeated consideration, I modified the a.bat file again as follows: regedit.exe /s "e:\\tea.reg"@echo offecho %time%ping /n 60 127.1 >nulecho %time%" C:\\Program Files\\TeamViewer\\Version6\\TeamViewer.exe" --control "%1" where ping /n 60 127.1 >nul means waiting for about 60 seconds. 2:55 am —— login to the router, binding IP and MAC address After the computer is installed, the automatically obtained IP address may change, what should I do? I first looked at the MAC address of the managed machine, then logged into the router, binding its MAC address and IP address, so that even if the system was reinstalled, the IP address it acquired would not change. 3:00—— search the registry, export the firewall reg file, the newly installed system is normally opened under the local firewall, then TeamViewer will access the network when it starts, this time the firewall will pop up The dialog box, if not unblocked, Windows Firewall will automatically block TeamViewer from accessing the network, so I still can't control the remote computer. what can we do about it? Still the old method, the registry. The opening and closing of the firewall is definitely reflected in the registry. Just export it. After some searching and testing, I found this project (Figure 2). Among them, the EnableFirewall item is to open the firewall. If the value is 0, the firewall is turned off. If the value is 1, the firewall is turned on. I also exported it, named fire.reg, which was stored on the E disk of the controlled machine. 3:03 & mdash;— Let the batch process import the firewall reg file and finally modify the batch menu of the boot menu so that it can import the reg file of the firewall. Modify a.bat again to make the content into the following lines: regedit.exe /s "e:\\tea.reg"regedit.exe /s "e:\\fire.reg"@echo offecho %time%ping /n 60 127.1 >nulecho %time%"C:\\Program Files\\TeamViewer\\Version6\\TeamViewer.exe" --control "%1"3:05—— remotely copy files, reinstall all the work preparations Ready to start operation. I first copy the completed registry file, the ghost installation image file (which I modified) to the specified location of the controlled machine through the shared folder, and then run a one-click restore on the controlled machine. After the dialog box appears. Select “Customize Action" (Figure 3), the Select File dialog box appears, select the ghost image file I just copied and confirm that the system window is dark and the controlled machine is restarted. 3:10 am —— Long wait for the following operations is not under my control, I can only hope that all my ideas are completely correct. After a while, I entered ping 192.168.1.102 –t in the CMD window (this IP is the IP address I bound for the controlled machine), wait patiently, the control machine has not been installed, no access to the system At the time, the CMD window has been Request timed out. 3:28 am —— recovery normal suddenly, CMD window appeared Reply from 192.168.1.102: bytes=32 time=3ms TTL=63, indicating that the controlled machine system is installed, my heart is ecstasy, and waited a few Minutes, start the TeamViewer of this machine, enter the IP address of the controlled machine in the partner ID (Figure 4), and then click Connect to the partner. After a while, there is a dialog box asking for a password. This means that the ConsoleViewer of the controlled machine is also started normally. Enter the password that I started to set, click “Login”, the screen of the controlled machine appears, huh, huh, Successful! I can work remotely again. This article comes from [System Home] www.xp85.com