如何在Windows 8和10中将以太网连接设置为计量

wem_top

Windows 8 and 10 both allow you to set certain types of connections as metered so that you can limit the amount of data Windows (and certain apps) can use without asking. You can use the regular Settings interface to set mobile and Wi-Fi connections as metered, but for some reason Windows assumes you won’t need to do this with wired Ethernet connections. If you use an ISP that has monthly data caps, you know better. The good news is that a quick Registry edit will fix you right up.

Windows 8和Windows 10都允许您将某些类型的连接设置为按计量的,以便您可以限制Windows(和某些应用程序)可以使用而无需询问的数据量。 您可以使用常规的“设置”界面将移动和Wi-Fi连接设置为按流量计费,但是由于某些原因,Windows假定您不需要通过有线以太网连接来进行此操作。 如果您使用具有每月数据上限的ISP,那么您会更加了解。 好消息是,快速的注册表编辑将立即解决您的问题。

Note that this hack is no longer necessary if you have upgraded your PC to the Windows 10 Creators Update. The Creators Update now lets you set an Ethernet connection as metered right in the interface.

请注意,如果您已将PC升级到Windows 10 Creators Update,则不再需要此hack。 现在,创建者更新可让您将以太网连接设置为按需在界面中进行计量。

通过编辑注册表将以太网连接设置为计量 (Set an Ethernet Connection as Metered by Editing the Registry)

To set your Ethernet connection to metered, you’ll have to dive into the Windows Registry to make a quick edit.

要将以太网连接设置为计量连接,您必须深入Windows注册表进行快速编辑。

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.

标准警告:注册表编辑器是一个功能强大的工具,滥用它会使您的系统不稳定甚至无法运行。 这是一个非常简单的技巧,只要您按照说明进行操作,就不会有任何问题。 也就是说,如果您以前从未使用过它,请在开始之前考虑阅读有关如何使用注册表编辑器的信息 。 并在进行更改之前一定要备份注册表 (和您的计算机 !)。

To get started, open the Registry Editor by hitting Start and typing “regedit.” Press Enter to open Registry Editor and give it permission to make changes to your PC.

首先,点击开始并键入“ regedit”,打开注册表编辑器。 按Enter键打开注册表编辑器,并授予其对PC进行更改的权限。

wem_1

In the Registry Editor, use the left sidebar to navigate to the following key:

在注册表编辑器中,使用左侧边栏导航至以下键:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost
wem_2

Before you go any further with the edit, you’re going to have to take an additional step. The DefaultMediaCost key you just navigated to is protected, meaning that you don’t by default have the permissions necessary to edit it. You’re going to have to take ownership of and set some permissions on the key before you can edit it for the first time. It’s quick and you’ll only have to do it once. After you set the permissions, you’ll be able to edit the key freely in the future.

在继续进行编辑之前,您将必须采取其他步骤。 您刚刚导航到的DefaultMediaCost密钥受到保护,这意味着默认情况下您没有编辑该密钥所必需的权限。 您必须先拥有密钥的所有权并为其设置一些权限 ,然后才能首次对其进行编辑。 它很快,您只需要做一次。 设置权限后,以后便可以自由编辑密钥。

Once you’ve set those permissions on the DefaultMediaCost key, you’re going to edit one of the values inside it. Click the DefaultMediaCost key to select it and then in the right pane, double-click the Ethernet value to edit it.

DefaultMediaCost密钥上设置了这些权限后,您将要编辑其中的值之一。 单击DefaultMediaCost键将其选中,然后在右窗格中,双击Ethernet值进行编辑。

wem_3

On the Ethernet value’s properties window, change the number in the “Value data” box from 1 to 2 and then click OK.

Ethernet值的属性窗口上,将“值数据”框中的数字从1更改为2,然后单击“确定”。

wem_4

You can now close Registry Editor. Your Ethernet connection is now set to metered, meaning that data-intensive Windows services like Windows Update and automatic app downloads won’t happen without asking your permission first. You might also find that some apps behave differently, as certain apps from the Windows store might be designed to respect this setting.

现在,您可以关闭注册表编辑器。 现在,您的以太网连接已设置为计量,这意味着无需先征得您的许可,就不会发生数据密集型Windows服务,例如Windows Update和自动应用下载。 您可能还会发现某些应用程序的行为有所不同,因为Windows应用商店中的某些应用程序可能被设计为遵守此设置。

Unfortunately, the Settings interface in Windows won’t update to show you that the connection is metered, as it does when you enabled metered connections for mobile and Wi-Fi connections. To verify, you’ll need to return to Registry Editor and check the settings. Just remember that a setting of 2 means metered, and 1 means unmetered.

不幸的是,Windows中的“设置”界面将不会更新,以显示连接已被计量,就像为移动和Wi-Fi连接启用计量连接时一样。 要进行验证,您需要返回注册表编辑器并检查设置。 只需记住,设置2表示已计量,而1表示未计量。

If you need to reverse the setting and change your Ethernet connection back to unmetered, just return to the DefaultMediaCost key and set the Ethernet value from 2 back to 1.

如果需要撤消设置并将以太网连接更改回不受限制,则只需返回DefaultMediaCost项,并将Ethernet值从2设置回1。

下载我们的一键式注册表黑客 (Download Our One-Click Registry Hacks)

wem_5

If you don’t feel like diving into the Registry each time to set your connection as metered or unmetered, we’ve created two downloadable registry hacks you can use. One hack enables a metered connection for Ethernet and the other hack changes it back to an unmetered connection, restoring the default setting. Both are included in the following ZIP file. Before you can use these hacks, though, you will have to fire up Registry Editor once to take ownership of and set permissions for the DefaultMediaCost key, as we discussed in the previous section. After you’ve done that, you can then use our Registry hacks whenever you want. Double-click the one you want to use and click through the prompts to give it permission to make changes.

如果您不想每次都进入注册表来将连接设置为按计量或不按计量,则我们创建了两个可下载的注册表黑客供您使用。 一个hack启用了以太网的计量连接,另一个hack将其更改回非计量连接,以恢复默认设置。 两者都包含在以下ZIP文件中。 但是,在使用这些技巧之前,您将必须启动一次注册表编辑器以拥有DefaultMediaCost密钥并为其设置权限,如上一节所述。 完成之后,您可以随时使用我们的注册表黑客。 双击要使用的计算机,然后在提示中单击以授予其进行更改的权限。

Metered Ethernet Hacks

计量以太网黑客

These hacks are really just the DefaultMediaCost key, stripped down to the Ethernet value we described above, and then exported to a .REG file. Running the “Enable Metered Ethernet Connection” hack sets the Ethernet value to 2. Running the “Restore Unmetered Ethernet Connection (Default)” hack sets the value back to 1.  And if you enjoy fiddling with the Registry, it’s worth taking the time to learn how to make your own Registry hacks.

这些hack实际上只是DefaultMediaCost密钥,被精简为我们上面描述的Ethernet值,然后导出到.REG文件。 运行“启用计量的以太网连接” hack将Ethernet值设置为2。运行“还原未计量的以太网连接(默认)” hack将值设置为1。如果您喜欢注册表,那么花点时间来了解如何制作自己的注册表黑客

And that’s it. If you’re using an Ethernet connection, but still have an ISP that limits data, setting the Ethernet connection to metered can prevent Windows and some apps from using that data up when you’re not paying attention.

就是这样。 如果您使用的是以太网连接,但是仍然有一个ISP限制数据,那么在您不注意时,将以太网连接设置为已计量可以防止Windows和某些应用程序使用该数据。

Thanks to reader David for sending this tip in!

感谢读者David发送此技巧!

翻译自: https://www.howtogeek.com/262477/how-to-set-an-ethernet-connection-as-metered-in-windows-8-and-10/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值