如果您想阻止其他用户(prevent Other users)从备份中恢复以前版本(restoring previous versions)的文件,那么本文将指导您。您可以为本地先前版本和远程先前版本阻止此功能。所有这些事情都将通过本地组策略编辑器(Local Group Policy Editor)和注册表编辑器(Registry Editor)来完成。
Windows 允许用户恢复文件的先前版本(restore a previous version)以取回已删除的数据。但是,如果您不想让其他用户从备份中恢复以前版本的文件,您可以执行以下操作。除此之外,您还可以在本文的帮助下隐藏本地和远程文件的以前版本列表。
防止(Prevent)从备份中恢复以前版本的文件
要防止从Windows 10中的备份还原以前版本的文件,请按照以下步骤操作 -
- 在任务栏搜索框中搜索gpedit.msc。
- 单击搜索结果中的编辑组策略(Edit group policy)。
- 导航到计算机配置(Computer Configuration)中的先前版本(Previous Versions)。
- 双击防止从备份中恢复以前的版本(Prevent restoring previous versions from backups)。
- 选择启用(Enabled)选项。
- 单击应用(Apply)和确定(OK)按钮。
- 双击防止恢复本地以前的版本(Prevent restoring local previous versions)和防止恢复远程以前的版本(Prevent restoring remote previous versions)。
- 选择启用(Enabled)选项。
- 单击应用(Apply)和确定(OK)按钮。
让我们详细检查这些步骤。
首先,您必须打开本地组策略编辑器(Local Group Policy Editor)。为此,gpedit.msc
在任务栏(Taskbar)搜索框中搜索,然后单击搜索结果中的 编辑组策略 (Edit group policy )。打开工具后,导航到此路径-
Computer Configuration > Administrative Templates > Windows Components > File Explorer > Previous Versions
在“ 以前的版本 (Previous Versions )”文件夹中,您将获得三个设置,它们是 -
- 防止从备份恢复以前的版本:(Prevent restoring previous versions from backups:)如果启用此设置,它将禁用以前版本页面中的 恢复 (Restore )按钮。它仅在以前的版本保存在备份中时才有效。
- 防止恢复本地以前的版本:(Prevent restoring local previous versions:)当用户选择的文档/图像等是本地文件时有效。除此之外,恢复(Restore)按钮将灰显。
- 防止远程恢复以前的版本:(Prevent restoring remote previous versions:)与之前的设置几乎相同。唯一的区别是,当用户在文件共享上选择了文件的先前版本时,它可以工作。
因此,逐个双击每个设置,选择 Enabled,分别单击 Apply 和 OK 按钮。
如前所述,无论位置如何,您都可以隐藏以前的版本列表。为此,导航到相同的路径,然后打开这三个设置-
- 隐藏(Hide)本地文件的先前版本列表
- 隐藏(Hide)远程文件的先前版本列表
- (Hide)在备份位置隐藏以前版本的文件
同样,选择 Enabled 选项,然后单击 Apply 和 OK 按钮以保存更改。
防止使用(Prevent)注册表编辑器(Registry Editor)从备份中还原以前版本的文件
要防止使用注册表编辑器(Registry Editor)从备份中恢复以前版本的文件,请按照以下步骤操作 -
- 按 Win+R 打开运行提示。
- 键入regedit,然后按Enter按钮。
- 单击是(Yes)按钮。
- 导航到HKEY_CURRENT_USER中的(HKEY_CURRENT_USER)PreviousVersions。
- 右键单击(Right-click)PreviousVersions PreviousVersions > New > DWORD (32-bit) Value。
- 将其命名为DisableBackupRestore。
- 双击(Double-click)DisableBackupRestore将Value数据设置为1。
- 单击确定(OK)以保存更改。
- 创建DisableLocalRestore并将 Value 数据设置为1。
- 创建DisableRemoteRestore并将 Value 数据设置为1。
在对注册表编辑器(Registry Editor)进行任何更改之前,建议创建一个系统还原点并备份所有注册表文件(backup all Registry files)。
您将在您的计算机上打开注册表编辑器。为此,请按 Win+R,键入regedit
并按 Enter 按钮。打开注册表编辑器(Registry Editor)后,导航到此路径-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PreviousVersions
现在右键单击 PreviousVersions 并选择 New > DWORD (32-bit) Value 并将其命名为 DisableBackupRestore。
之后,双击DisableBackupRestore,将Value数据设置为 1,然后单击 OK 按钮保存更改。
之后,您必须按照相同的方法再创建两个 REG_WORD 值,并将它们命名为 DisableLocalRestore 和 DisableRemoteRestore。然后,双击每个值并将 值数据 (Value data )设置为 1。
如果要从相应的属性页中隐藏以前版本的列表,则需要创建其他三个REG_DWORD值。
- DisableLocalPage: 隐藏(Hide)本地文件的先前版本列表
- DisableRemotePage: 隐藏(Hide)远程文件的先前版本列表
- HideBackupEntries: 在备份位置隐藏以前版本的文件(Hide)
要创建它们,请右键单击PreviousVersions键,然后选择 New > DWORD (32-bit) Value。然后,您可以按此处所述命名每个值。要启用每个功能,请一个接一个地双击它们并将 值数据 (Value data )设置为 1。
最后,单击 OK 按钮保存所有更改。
如果您由于任何原因想要重新启用“以前的版本”功能,您有两种方法。首先(First),您可以打开这些条目并将值数据(Value data)设置 为 0。其次,您可以从(Second)PreviousVersions 键中删除这些值 。
就这样!希望能帮助到你。
How to prevent restoring previous versions of files from backups
If you want to prevent Other users from restoring previous versions of files from backup, then this article will guide you. You can block this functionality for the local previous versions and remote previous versions. All these things will be done with the Local Group Policy Editor and Registry Editor.
Windows allows users to restore a previous version of a file to get back deleted data. However, if you do not want to allow other users to restore a file from the previous versions from backups, here is what you can do. Apart from that, you can also hide previous versions list for local as well as remote files with the help of this article.
Prevent restoring previous versions of files from backups
To prevent restoring previous versions of files from backups in Windows 10, follow these steps-
- Search for gpedit.msc in the Taskbar search box.
- Click the Edit group policy in the search result.
- Navigate to Previous Versions in the Computer Configuration.
- Double-click on Prevent restoring previous versions from backups.
- Select Enabled option.
- Click the Apply and OK buttons.
- Double-click on Prevent restoring local previous versions and Prevent restoring remote previous versions.
- Select Enabled option.
- Click the Apply and OK buttons.
Let’s check out these steps in detail.
At first, you will have to open the Local Group Policy Editor. For that, search for gpedit.msc
in the Taskbar search box, and click the Edit group policy in the search result. After opening the tool, navigate to this path-
Computer Configuration > Administrative Templates > Windows Components > File Explorer > Previous Versions
In the Previous Versions folder, you will get three settings, and they are-
- Prevent restoring previous versions from backups: If you enable this setting, it will disable the Restore button in the previous versions page. It works only when the previous version is saved on a backup.
- Prevent restoring local previous versions: It works when the user’s selected document/image, etc. is a local file. Apart from that, the Restore button will be grayed out.
- Prevent restoring remote previous versions: It is almost the same as the earlier setting. The only difference is that it works when the user has selected a previous version of a file on a file share.
Therefore, double-click on each setting one after one, select Enabled, click the Apply and OK buttons, respectively.
As mentioned earlier, you can hide the previous versions list irrespective of location. For that, navigate to the same path, and open these three settings-
- Hide previous versions list for local files
- Hide previous versions list for remote files
- Hide previous versions of files on backup location
Similarly, select the Enabled option, and click on Apply and OK buttons to save the change.
Prevent restoring previous versions of files from backups using Registry Editor
To prevent restoring previous versions of files from backups using Registry Editor, follow these steps-
- Press Win+R to open the Run prompt.
- Type regedit, and hit the Enter button.
- Click on Yes button.
- Navigate to PreviousVersions in HKEY_CURRENT_USER.
- Right-click on PreviousVersions > New > DWORD (32-bit) Value.
- Name it as DisableBackupRestore.
- Double-click on DisableBackupRestore to set the Value data as 1.
- Click OK to save changes.
- Create DisableLocalRestore and set the Value data as 1.
- Create DisableRemoteRestore and set the Value data as 1.
Before making any change in the Registry Editor, it is recommended to create a System Restore point and backup all Registry files.
You will open the Registry Editor on your computer. For that, press Win+R, type regedit
and hit the Enter button. After opening the Registry Editor, navigate to this path-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PreviousVersions
Now right-click on PreviousVersions and select New > DWORD (32-bit) Value and name it as DisableBackupRestore.
Following that, double-click on DisableBackupRestore, set the Value data as 1, and click the OK button to save changes.
After that, you will have to create two more REG_WORD values by following the same method and name them as DisableLocalRestore and DisableRemoteRestore. Then, double-click on each value and set the Value data as 1.
If you want to hide the list of the previous versions from the corresponding property page, it is required to create three other REG_DWORD values.
- DisableLocalPage: Hide previous versions list for local files
- DisableRemotePage: Hide previous versions list for remote files
- HideBackupEntries: Hide previous versions of files on backup location
To create them, right-click on PreviousVersions key, and select New > DWORD (32-bit) Value. Then, you can name each value as mentioned here. To enable each functionality, double-click on them one after one and set the Value data as 1.
At last, click the OK button to save all changes.
In case you want to re-enable the ‘previous versions’ functionality due to any reason, you have two ways. First, you can open those entries and set the Value data as 0. Second, you can delete those values from the PreviousVersions key.
That’s all! Hope it helps.