
windows更新时关机了

Windows uses a paging file, also known as a page file, as additional virtual memory when your RAM fills up. Windows can clear your page file every time you shut down, ensuring no sensitive data is left in the page file on the drive.
当RAM填满时,Windows使用分页文件 (也称为页面文件)作为附加的虚拟内存。 Windows每次关闭时都可以清除页面文件,以确保驱动器上的页面文件中不保留任何敏感数据。
运作方式 (How This Works)
When you shut down your computer, the system’s RAM is always erased—it’s erased whenever it loses power. But the page file isn’t. If you’re worried about someone snooping for sensitive data that may be left in your page file, Windows can erase it each time you shut down. It does this by writing 0’s to every bit of the page file, overwriting any existing data. If someone pulls the hard drive from your computer, they can’t inspect the page file to find any potentially sensitive data that may have been stored in memory.
当您关闭计算机时,系统的RAM始终会被擦除-断电时也会被擦除。 但是页面文件不是。 如果您担心有人在窥探可能保留在页面文件中的敏感数据,则Windows可以在您每次关闭时将其擦除。 它通过将0写入页面文件的每一位来执行此操作,从而覆盖任何现有数据。 如果有人从计算机中拉出硬盘驱动器,他们将无法检查页面文件以查找可能已存储在内存中的任何潜在敏感数据。
There’s a real downside to enabling this feature. It will make your computer take much longer to shut down. Your shutdown time may go from a few seconds to a few minutes, or even longer. It depends on how fast your computer’s hard drive is and how large your page file is. This is why Windows doesn’t automatically clear the page file at shutdown by default. It’s a trade-off, and one most people wouldn’t want.
启用此功能确实有弊端。 这将使您的计算机关闭时间更长。 您的关机时间可能从几秒钟到几分钟,甚至更长。 这取决于计算机硬盘驱动器的速度以及页面文件的大小。 这就是Windows默认情况下在关机时不会自动清除页面文件的原因。 这是一个折衷,大多数人都不想要。
我们推荐加密 (We Recommend Encryption Instead)
Rather than rely on clearing your page file, we recommend setting up full-disk encryption on your Windows PC, if possible. If your page file is stored on an encrypted drive, you don’t have to wipe it each time you shut down—the page file will be encrypted, too. That means no one can pull the drive and attempt to examine the page file without having your encryption key.
建议不要依赖清除页面文件,而是尽可能在Windows PC上设置全盘加密 。 如果页面文件存储在加密的驱动器上,则不必每次关闭时都擦除它-页面文件也将被加密。 这意味着没有您的加密密钥,任何人都无法拉出驱动器并尝试检查页面文件。
More importantly, encryption also prevents attackers from looking at all the other files on your hard drive. But, if you store your page file on an unencrypted drive, or if an organization uses thin-client systems, this option can be useful.
更重要的是,加密还可以防止攻击者查看硬盘驱动器上的所有其他文件。 但是,如果将页面文件存储在未加密的驱动器上,或者组织使用瘦客户端系统,则此选项可能很有用。
家庭用户:使用注册表编辑器删除关机时的页面文件 (Home Users: Erase the Page File on Shutdown with the Registry Editor)
If you have a Home edition of Windows, you will have to edit the Windows registry to make these changes. You can also do it this way if you have Windows Pro or Enterprise, but just feel more comfortable working in the Registry as opposed to Group Policy Editor. (If you have Pro or Enterprise, though, we recommend using the easier Group Policy Editor, as described in the next section.)
如果您有Windows的家庭版,则必须编辑Windows注册表才能进行这些更改。 如果您使用的是Windows Pro或Enterprise,也可以通过这种方式进行操作,但是与组策略编辑器相比,在注册表中工作更加自在。 (但是,如果您具有Pro或Enterprise,我们建议使用更简单的组策略编辑器,如下一节所述。)
Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.
标准警告:注册表编辑器是一个功能强大的工具,滥用它会使您的系统不稳定甚至无法运行。 这是一个非常简单的技巧,只要您按照说明进行操作,就不会有任何问题。 也就是说,如果您以前从未使用过它,请在开始之前考虑阅读有关如何使用注册表编辑器的信息 。 并在进行更改之前一定要备份注册表 (和您的计算机 !)。
First, open the Registry Editor by pressing Windows+R, typing “regedit” into the Run dialog that appears, and pressing Enter.
首先,通过按Windows + R打开注册表编辑器,在出现的“运行”对话框中键入“ regedit”,然后按Enter。

Use the left sidebar to navigate to the following key.
使用左侧边栏导航至以下键。
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

You should see a “ClearPageFileAtShutdown” setting in the right pane. If you don’t, right-click the “Memory Management” key in the left pane, select New > DWORD (32-bit) Value, and enter “ClearPageFileAtShutdown” as the name.
您应该在右窗格中看到“ ClearPageFileAtShutdown”设置。 如果不这样做,请右键单击左窗格中的“内存管理”键,选择“新建”>“ DWORD(32位)值”,然后输入“ ClearPageFileAtShutdown”作为名称。
Double-click the ClearPageFileAtShutdown
value, set enter “1” in the value data box, and press Enter.
双击ClearPageFileAtShutdown
值,在值数据框中设置输入“ 1”,然后按Enter。
You can now close the Registry Editor window.
现在,您可以关闭“注册表编辑器”窗口。

If you want Windows to stop clearing the page file at shutdown, return here, double-click the ClearPageFileAtShutdown
setting, and set it back to “0”.
如果要Windows在关机时停止清除页面文件,请返回此处,双击ClearPageFileAtShutdown
设置,然后将其设置回“ 0”。
下载我们的一键式注册表黑客 (Download Our One-Click Registry Hack)

We’ve created two downloadable registry hacks that do the work for you. One disables the “ClearPageFileAtShutdown” setting, and one enables it. Download the archive below, double-click the registry hack you want to use, and add the information to your registry.
我们创建了两个可下载的注册表hack,它们可以为您完成工作。 一种禁用“ ClearPageFileAtShutdown”设置,另一种启用它。 下载下面的档案,双击要使用的注册表黑客,然后将信息添加到注册表中。
Download ClearPageFileAtShutdown Hacks
These are really just two small .REG files that change the registry value we showed you how to change above. If you ever want to see what a .REG file does, you can right-click it and select “Edit”. And, if you enjoy tweaking the registry, you can make your own registry hacks.
这些实际上只是两个小的.REG文件,它们会更改注册表值,我们在上面向您展示了如何进行更改。 如果您想查看.REG文件的功能,则可以右键单击该文件,然后选择“编辑”。 而且,如果您喜欢调整注册表,则可以进行自己的注册表修改 。
专业版和企业版用户:使用组策略编辑器 (Pro and Enterprise User: Use the Group Policy Editor)
If you’re using a Professional or Enterprise edition of Windows, the easiest way to have Windows clear your page file at shutdown is by using the Local Group Policy Editor. It’s a pretty powerful tool, so if you’ve never used it before, it’s worth taking some time to learn what it can do. Also, if you’re on a company network, do everyone a favor and check with your admin first. If your work computer is part of a domain, it’s also likely that it’s part of a domain group policy that will supersede the local group policy, anyway.
如果您使用的是Windows专业版或企业版,则让Windows在关闭时清除页面文件的最简单方法是使用“本地组策略编辑器”。 这是一个非常强大的工具,因此,如果您以前从未使用过它,那么值得花一些时间来学习它可以做什么 。 另外,如果您在公司网络中,请给所有人一个帮助,并首先与您的管理员联系。 如果您的工作计算机是域的一部分,则它也很可能是域组策略的一部分,无论如何,该组策略将取代本地组策略。
To open it, press Windows+R on your keyboard, type “gpedit.msc” into the Run dialog that appears, and press “Enter”.
要打开它,请按键盘上的Windows + R,在出现的“运行”对话框中键入“ gpedit.msc”,然后按“ Enter”。
If you see an error message saying gpedit.msc wasn’t found, you’re using a Home edition of Windows. You can’t use this tool.
如果看到错误消息,提示未找到gpedit.msc,则说明您使用的是Windows Home Edition。 您无法使用此工具。

In the left pane, navigate to the Local Computer Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options folder.
在左窗格中,导航到“本地计算机策略”>“计算机配置”>“ Windows设置”>“安全设置”>“本地策略”>“安全选项”文件夹。
Locate the “Shutdown: Clear virtual memory pagefile” option in the right pane and double-click it.
在右窗格中找到“关闭:清除虚拟内存页面文件”选项,然后双击它。

Click the “Enabled” option in the properties window that appears and click “OK”. Windows will now clear the page file each time you shut down.
在出现的属性窗口中单击“启用”选项,然后单击“确定”。 Windows现在将在每次关闭时清除页面文件。
You can now close the group policy editor window.
现在,您可以关闭组策略编辑器窗口。

If you ever want to stop Windows from clearing your page file each time you shut down, return here, double-click the “Shutdown: Clear virtual memory pagefile” setting, and select the “Disabled” option.
如果您想在每次关闭时都阻止Windows清除页面文件,请返回此处,双击“关闭:清除虚拟内存页面文件”设置,然后选择“禁用”选项。
windows更新时关机了