Windows Server 2008 Inside Out- P7
Số trang: 50
Loại file: pdf
Dung lượng: 1.42 MB
Lượt xem: 9
Lượt tải: 0
Xem trước 5 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Tham khảo tài liệu windows server 2008 inside out- p7, công nghệ thông tin, quản trị mạng phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
Windows Server 2008 Inside Out- P7 Working with the Registry 267Modifying the Registry of a Remote MachineYou can modify the Registry of remote computers without having to log on locally. Todo this, select Connect Network Registry on the File menu in Registry Editor, thenuse the Select Computer dialog box to specify the computer with which you want towork. In most cases, all you must do is type the name of the remote computer and thenclick OK. If prompted, you might need to enter the user name and password of a useraccount that is authorized to access the remote computer.After you connect, you get a new icon for the remote computer under your Computericon in the left pane of Registry Editor. Double-click this icon to access the physicalroot keys on the remote computer (HKEY_LOCAL_MACHINE and HKEY_USERS).The logical root keys aren’t available because they are either dynamically created orsimply pointers to subsets of information from within HKEY_LOCAL_MACHINE andHKEY_USERS. You can then edit the computer’s Registry as necessary. When you aredone, you can select Disconnect Network Registry on the File menu and then choosethe computer from which you want to disconnect. Registry Editor then closes the Regis-try on the remote computer and breaks the connection.When working with remote computers, you can also load or unload hives as discussed Chapter 9in “Loading and Unloading Hive Files” on page 270. If you’re wondering why you woulddo this, the primary reason is to work with a specific hive, such as the hive that pointsto Dianne Prescott’s user profile because she inadvertently changed the display mode toan invalid setting and can no longer access the computer locally. With her user profiledata loaded, you could then edit the Registry to correct the problem and then save thechanges so that she can once again log on to the system.Importing and Exporting Registry DataSometimes you might fi nd that it is necessary or useful to copy all or part of the Regis-try to a file. For example, if you’ve installed a service or component that requires exten-sive configuration, you might want to use it on another computer without having to gothrough the whole configuration process again. So, instead, you could install the ser-vice or component baseline on the new computer, then export the application’s Registrysettings from the previous computer, copy them over to the other computer, and thenimport the Registry settings so that the service or component is properly configured. Ofcourse, this technique works only if the complete configuration of the service or compo-nent is stored in the Registry, but you can probably see how useful being able to importand export Registry data can be.By using Registry Editor, it is fairly easy to import and export Registry data. Thisincludes the entire Registry, branches of data stemming from a particular root key, andindividual subkeys and the values they contain. When you export data, you create a .regfile that contains the designated Registry data. This Registry fi le is a script that can thenbe loaded back into the Registry of this or any other computer by importing it. 268 Chapter 9 Managing the Registry Note Because the Registry script is written as standard text, you could view it and, if necessary, modify it in any standard text editor as well. Be aware, however, that double-clicking the .reg file launches Registry Editor, which prompts you as to whether you want to import the data into the Registry. If you are concerned about this, save the data to a file with the .hiv extension because double-clicking files with this extension won’t start Registry Edi- tor. Files with the .hiv extension must be manually imported (or you could simply change the file extension to .reg when it is time to use the data). To export Registry data, right-click the branch or key you want to export, and then select Export. You can also right-click the root node for the computer you are working with, such as Computer for a local computer, to export the entire Registry. Either way, you’ll see the Export Registry File dialog box as shown in Figure 9-8. Use the Save In selection list to choose a save location for the .reg fi le, and then type a file name. The Export Range panel shows you the selected branch within the Registry that will beChapter 9 exported. You can change this as necessary or select All to export the entire Registry. Then click Save to create the .reg fi le. Figure 9-8 Exporting Registry data to a .reg file so that it can be saved and, if necessary, imported on this or another computer. Working with the Registry 269SIDE OUT Want to export the entire Registry quickly? You can export the entire Registry at the command line by typing regedit /e SaveFile, where SaveFile is the complete file path to the location where you want to save the copy of the Registry. For example, if you wanted to save a copy of the Registry to C:\ Corpsvr06-regdata.reg, you would type regedit /e C:\corpsvr06-regdata.reg. You can also extend this technique to rapidly determine the ex ...
Nội dung trích xuất từ tài liệu:
Windows Server 2008 Inside Out- P7 Working with the Registry 267Modifying the Registry of a Remote MachineYou can modify the Registry of remote computers without having to log on locally. Todo this, select Connect Network Registry on the File menu in Registry Editor, thenuse the Select Computer dialog box to specify the computer with which you want towork. In most cases, all you must do is type the name of the remote computer and thenclick OK. If prompted, you might need to enter the user name and password of a useraccount that is authorized to access the remote computer.After you connect, you get a new icon for the remote computer under your Computericon in the left pane of Registry Editor. Double-click this icon to access the physicalroot keys on the remote computer (HKEY_LOCAL_MACHINE and HKEY_USERS).The logical root keys aren’t available because they are either dynamically created orsimply pointers to subsets of information from within HKEY_LOCAL_MACHINE andHKEY_USERS. You can then edit the computer’s Registry as necessary. When you aredone, you can select Disconnect Network Registry on the File menu and then choosethe computer from which you want to disconnect. Registry Editor then closes the Regis-try on the remote computer and breaks the connection.When working with remote computers, you can also load or unload hives as discussed Chapter 9in “Loading and Unloading Hive Files” on page 270. If you’re wondering why you woulddo this, the primary reason is to work with a specific hive, such as the hive that pointsto Dianne Prescott’s user profile because she inadvertently changed the display mode toan invalid setting and can no longer access the computer locally. With her user profiledata loaded, you could then edit the Registry to correct the problem and then save thechanges so that she can once again log on to the system.Importing and Exporting Registry DataSometimes you might fi nd that it is necessary or useful to copy all or part of the Regis-try to a file. For example, if you’ve installed a service or component that requires exten-sive configuration, you might want to use it on another computer without having to gothrough the whole configuration process again. So, instead, you could install the ser-vice or component baseline on the new computer, then export the application’s Registrysettings from the previous computer, copy them over to the other computer, and thenimport the Registry settings so that the service or component is properly configured. Ofcourse, this technique works only if the complete configuration of the service or compo-nent is stored in the Registry, but you can probably see how useful being able to importand export Registry data can be.By using Registry Editor, it is fairly easy to import and export Registry data. Thisincludes the entire Registry, branches of data stemming from a particular root key, andindividual subkeys and the values they contain. When you export data, you create a .regfile that contains the designated Registry data. This Registry fi le is a script that can thenbe loaded back into the Registry of this or any other computer by importing it. 268 Chapter 9 Managing the Registry Note Because the Registry script is written as standard text, you could view it and, if necessary, modify it in any standard text editor as well. Be aware, however, that double-clicking the .reg file launches Registry Editor, which prompts you as to whether you want to import the data into the Registry. If you are concerned about this, save the data to a file with the .hiv extension because double-clicking files with this extension won’t start Registry Edi- tor. Files with the .hiv extension must be manually imported (or you could simply change the file extension to .reg when it is time to use the data). To export Registry data, right-click the branch or key you want to export, and then select Export. You can also right-click the root node for the computer you are working with, such as Computer for a local computer, to export the entire Registry. Either way, you’ll see the Export Registry File dialog box as shown in Figure 9-8. Use the Save In selection list to choose a save location for the .reg fi le, and then type a file name. The Export Range panel shows you the selected branch within the Registry that will beChapter 9 exported. You can change this as necessary or select All to export the entire Registry. Then click Save to create the .reg fi le. Figure 9-8 Exporting Registry data to a .reg file so that it can be saved and, if necessary, imported on this or another computer. Working with the Registry 269SIDE OUT Want to export the entire Registry quickly? You can export the entire Registry at the command line by typing regedit /e SaveFile, where SaveFile is the complete file path to the location where you want to save the copy of the Registry. For example, if you wanted to save a copy of the Registry to C:\ Corpsvr06-regdata.reg, you would type regedit /e C:\corpsvr06-regdata.reg. You can also extend this technique to rapidly determine the ex ...
Tìm kiếm theo từ khóa liên quan:
thủ thuật máy tính công nghệ thông tin tin học quản trị mạng computer networkGợi ý tài liệu liên quan:
-
52 trang 416 1 0
-
24 trang 350 1 0
-
Top 10 mẹo 'đơn giản nhưng hữu ích' trong nhiếp ảnh
11 trang 299 0 0 -
Báo cáo thực tập thực tế: Nghiên cứu và xây dựng website bằng Wordpress
24 trang 287 0 0 -
Làm việc với Read Only Domain Controllers
20 trang 286 0 0 -
74 trang 282 0 0
-
96 trang 282 0 0
-
Đồ án tốt nghiệp: Xây dựng ứng dụng di động android quản lý khách hàng cắt tóc
81 trang 268 0 0 -
Tài liệu dạy học môn Tin học trong chương trình đào tạo trình độ cao đẳng
348 trang 267 1 0 -
EBay - Internet và câu chuyện thần kỳ: Phần 1
143 trang 257 0 0