您听说过Windows 注册表(Windows Registry)或注册表编辑器(Registry Editor)工具吗?您的一个极客朋友(geeky friend)是否告诉您,只有从注册表中执行某些操作才能在(Registry)Windows中执行?您是否想知道Windows 注册表(Windows Registry)是什么以及它的作用?在本文中,我们将阐明这些概念并解释Windows 注册表(Windows Registry)和注册表编辑器(Registry Editor)工具的基础知识。如果我们设法让您好奇,请继续阅读:
什么是Windows 注册表(Windows Registry)的(非常)简短的解释
所有Windows操作系统,包括Windows 10,都将其配置信息(configuration information)存储在数据库中。该数据库称为Windows 注册表(Windows Registry)。Windows 注册表(Windows Registry)包含配置文件,其中包含Windows 计算机或设备(Windows computer or device)上每个用户帐户(user account)的配置选项,用于在用户之间分离设置。
Windows 注册表有什么作用?
Windows使用 Windows 注册表中的(Windows)键(Windows Registry)和值来了解用于所有工具和功能、硬件设备和某些第三方软件应用程序的设置。
Windows 注册表(Windows Registry)数据库存储控制以下内容的设置:
- 硬件设备的驱动程序如何在 Windows 中工作
- 如何配置“设置”应用(Settings app)或“控制面板(Control Panel)”中的操作系统(operating system)设置
- 哪些是设置为打开某些文件类型或协议的默认程序
- 您安装的某些第三方应用程序如何工作等。
一个警告
接下来,我们想向您展示如何访问Windows 注册表(Windows Registry),但首先,我们必须警告您,玩弄内部设置并不是每个人都应该做的事情。如果您弄乱了错误的键和值,您可能会使您的Windows 操作系统(Windows operating)不稳定,甚至严重破坏它以至于您必须重新安装它。因此,请特别注意如何处理Windows 注册表(Windows Registry)中的设置,并且只更改您事先拥有文档的内容。
如何访问Windows 注册表(Windows Registry)
在所有Windows操作系统中,Windows 注册表(Windows Registry)都是使用称为注册表编辑器(Registry Editor)的工具打开和编辑的。该工具内置于Windows中,并且在该操作系统(operating system)的所有现代版本中都可以正常工作:Windows 10、Windows 8.1 和Windows 7。
打开注册表编辑器(Registry Editor)的最快方法是使用搜索。在Windows 10中,从任务栏中的(Windows 10)Cortana的搜索字段(search field)中写入“regedit”,然后单击或点击“regedit”搜索结果。
在 Windows 8.1 中,切换到“开始(Start)”屏幕并开始在其上写入“regedit”。当你完成写作时,你应该已经看到显示的“regedit”命令:单击或点击它。
在 Windows 7 中,打开开始菜单(Start Menu)并在其搜索字段中输入(search field)“regedit”。然后点击“regedit”搜索结果。
在Windows 10、 Windows 8.1 和Windows 7中打开(Windows 7)注册表编辑器(Registry Editor)的另一种方法是使用“运行”窗口(Run window)来启动它。通过同时按下键盘上的Windows + R键打开运行(Run),在打开文本字段中输入(Open)“regedit”,然后单击或点击确定(OK)。
无论您选择以何种方式打开它,注册表编辑器(Registry Editor)的外观如下:
屏幕截图是在Windows 10中拍摄的, (Windows 10)Windows 10 ( Creators Update ) 的(Creators Update)注册表编辑器(Registry Editor)唯一独特之(thing unique)处在于它在顶部有一个地址栏,而Windows 8.1和 Windows 7中的注册表编辑器(Registry Editor)则没有.
如何使用注册表编辑器
打开注册表编辑器(Registry Editor)后,您会看到它被拆分为多个面板。窗口左侧的一个显示了Windows 注册表(Windows Registry)中键的分层树视图(tree view)。在右侧面板上,您可以查看并使用左侧面板上选择的键的值。
尽管注册表编辑器(Registry Editor)允许您创建新的键和值,甚至删除它们,但大多数人使用它来编辑Windows 注册表中已经找到的键和值。(Windows Registry.)
不幸的是,Windows 注册表(Windows Registry)中几乎所有的键和值都带有神秘的名称,并且通常隐藏在许多其他父键中。这就是为什么我们建议您在执行此操作之前在线正确搜索(search online)您想要在Windows 注册表(Windows Registry)中更改的内容。
例如以下示例:如果您希望 Windows 10 PC 自动删除虚拟内存文件(memory file),也称为页面文件,则每次关闭计算机或设备(computer or device)时,都必须更改Windows 注册表中名为(Windows Registry)ClearPageFileAtShutDown的值。该值的名称并不那么神秘,但它的路径是:要访问它,您必须打开注册表编辑器(Registry Editor)并转到"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management."
要编辑一个值,您可以双击它或右键单击并单击/点击Modify。
然后,您所要做的就是输入您要使用的新值。在这种情况下,0 表示在Windows 10关机时不删除页面文件,1 表示每次关机时都会删除虚拟内存文件。(memory file)
注册表编辑器(Registry Editor)还允许您创建新的键和值,还允许您删除现有的键和值。然而,这些东西比编辑已经在Windows 注册表(Windows Registry)中找到的内容更高级,我们今天不会详细介绍它们。🙂
结论
现在您知道了Windows 注册表(Windows Registry )是什么,并且您应该非常了解它的作用以及如何使用注册表编辑器(Registry Editor)对其进行更改。您是否曾经用它来改变Windows 计算机或设备(Windows computer or device)上的工作方式?还是觉得太高级了?在下面的部分中分享您的评论。
Simple questions: What is the Windows Registry and what does it do?
Have you ever heard оf the Windows Registry or the Registry Editor tool? Did a geeky friend of yours tell you that there are things you can do in Windows only if you do them from the Registry? Did you wonder what the Windows Registry is and what it does? In this article, we'll shed some light on these notions and explain the basics of the Windows Registry and the Registry Editor tool. If we managed to make you curious, read on:
The (very) short explanation for what the Windows Registry is
All Windows operating systems, including Windows 10, store their configuration information in a database. This database is called the Windows Registry. The Windows Registry contains profiles with configuration options for each user account on your Windows computer or device, to separate settings between users.
What does the Windows Registry do?
The keys and values from Windows Registry are used by Windows to know what settings to use for all tools and features, hardware devices and some third-party software applications.
The Windows Registry database stores settings that control the following:
- How the drivers of hardware devices work in Windows
- How the operating system settings found in the Settings app or the Control Panel are configured
- Which are the default programs set to open certain file types or protocols
- How some of the third-party applications that you installed work, etc.
A word of caution
Next, we'd like to show you how to get access to the Windows Registry, but first, we must warn you that toying with the settings inside is not something that everyone should do. If you're messing with the wrong keys and values, you can make your Windows operating system unstable, or even break it so badly that you'll have to reinstall it. As such, take great care in how you deal with the settings from the Windows Registry, and only change things for which you have documentation beforehand.
How to get access to the Windows Registry
In all Windows operating systems, the Windows Registry is opened and edited using a tool called the Registry Editor. This tool is built into Windows and works the same in all modern versions of this operating system: Windows 10, Windows 8.1 and Windows 7.
The fastest way to open the Registry Editor is to use search. In Windows 10, write "regedit" inside Cortana's search field from your taskbar, and then click or tap on the "regedit" search result.
In Windows 8.1, switch to the Start screen and start writing "regedit" on it. By the time you finish writing, you should already see the "regedit" command shown: click or tap on it.
In Windows 7, open the Start Menu and write "regedit" in its search field. Then click on the "regedit" search result.
An alternative to open the Registry Editor that works the same in Windows 10, Windows 8.1 and Windows 7, is to use the Run window to launch it. Open Run by simultaneously pressing the Windows + R keys on your keyboard, write "regedit" inside the Open text field, and then click or tap OK.
Regardless of the way you choose to open it, here's how the Registry Editor looks:
The screenshot is taken in Windows 10, and the only thing unique about the Registry Editor from Windows 10 (Creators Update) is the fact that it has an address bar at the top, while the Registry Editor in Windows 8.1 and Windows 7 doesn't.
How to use the Registry Editor
Once you've opened the Registry Editor, you'll see that it's split into panels. The one on the left side of the window shows a hierarchical tree view of the keys from the Windows Registry. On the right panel, you can see and work with the values of the keys selected on the left panel.
Although the Registry Editor lets you create new keys and values, and even delete them, most people use it to edit the keys and values already found inside the Windows Registry.
Unfortunately, almost all the keys and values from the Windows Registry bear cryptic names and are usually found buried in lots of other parent keys. That's why we advise you to do a proper search online for exactly what you want to change in the Windows Registry before you do it.
Take for instance the following example: if you want your Windows 10 PC to delete the virtual memory file automatically, also known as the pagefile, each time you shut down your computer or device, you must change a value called ClearPageFileAtShutDown from the Windows Registry. The value's name is not that cryptic, but the path to it is: to get to it, you'll have to open the Registry Editor and go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management."
To edit a value, you can double-click on it or right-click and click/tap on Modify.
Then, all you have to do is enter the new value you want to be used. In this case, 0 means that the pagefile is not deleted on Windows 10 shutdown, and 1 means that the virtual memory file is deleted each time you shut down.
The Registry Editor also lets you create new keys and values, and it also allows you to delete existing ones. However, these are things that are even more advanced than editing what's already found in the Windows Registry, and we won't go into detail about them today. 🙂
Conclusion
Now you know what the Windows Registry is and you should have a pretty good idea of what it does and how to use the Registry Editor to make changes to it. Have you ever used it to alter the way things work on your Windows computer or device? Or do you find it too advanced? Share your comments in the section below.