![请在系统设置中为输入比率](https://i-blog.csdnimg.cn/blog_migrate/fe725bb35e34f56aed5d1004695ce476.png)
请在系统设置中为输入比率
![top](https://i-blog.csdnimg.cn/blog_migrate/67847fa6b38ad24e8da5725b3e80345b.png)
Parental controls in Windows 10 are pretty solid, but to use them you have to set the whole family up with Microsoft accounts and you have to create specific child accounts for your kids. If you prefer to use regular local accounts, you can still set time limits for how long any non-administrative user can use a computer.
Windows 10中的家长控制功能非常强大,但是要使用它们,您必须使用Microsoft帐户来建立整个家庭,并且必须为孩子创建特定的孩子帐户。 如果您更喜欢使用常规本地帐户,则仍可以设置时间限制,以限制任何非管理用户可以使用计算机的时间。
In Windows 10, Parental controls offer some nice features for monitoring kids’ accounts. They let you limit web browsing, which apps kids can use, and the times kids can use the computer. The downside is that to use these controls, all members of the family must have Microsoft accounts. You also have to set the kids up with child accounts, which can impose some limits you may not want. The good news is that you can still use local accounts and impose some of these same limits. If you’re comfortable working with Group Policy, it’s not hard to restrict users to running specified programs. You can filter web sites at the router level. And, as we’ll talk about here, you can even impose time restrictions for local user accounts.
在Windows 10中,家长控制功能提供了一些不错的功能来监视孩子的帐户 。 它们使您可以限制网络浏览,孩子可以使用哪些应用以及孩子可以使用计算机的时间。 缺点是要使用这些控件,家族的所有成员都必须拥有Microsoft帐户。 您还必须为孩子设置孩子帐户,这可能会施加一些您可能不需要的限制。 好消息是您仍然可以使用本地帐户并施加一些相同的限制。 如果您习惯使用组策略,则不难限制用户运行指定的程序 。 您可以在路由器级别过滤网站 。 而且,正如我们在这里将要讨论的,您甚至可以对本地用户帐户施加时间限制。
You’ll set time restrictions for a user at the Command Prompt. To open Command Prompt, right-click the Start menu (or press Windows+X), choose “Command Prompt (Admin)”, and then click Yes to allow it to run with administrative privileges.
您将在命令提示符处为用户设置时间限制。 要打开命令提示符,请右键单击“开始”菜单(或按Windows + X),选择“命令提示符(管理员)”,然后单击“是”以使其以管理权限运行。
![tl_start](https://i-blog.csdnimg.cn/blog_migrate/23aec2535f21830e0ae40c174f7416c3.png)
The command for setting time limits for a user follows this syntax:
用于为用户设置时间限制的命令遵循以下语法:
net user <username> /time:<day>,<time>
Here’s how each part of the command works:
这是命令各部分的工作方式:
Replace
<username>
with the name of the user account you want to limit.将
<username>
替换为您要限制的用户帐户的名称。Replace
<day>
with the day you want to set limits on. You can spell out the full names of the days or use the initials Su, M, T, W, Th, F, Sa.将
<day>
替换为要设置限制的日期。 您可以拼写日期的全名或使用缩写Su,M,T,W,Th,F,Sa。Replace
<time>
with a time range using either a 12-hour (3am, 1pm, etc.) or 24-hour (03:00, 13:00, etc.) format. You can only use times in one-hour increments, so don’t add any minutes to the times.用12小时(凌晨3点,下午1点等)或24小时(03:00、13:00等)格式的时间范围替换
<time>
。 您只能以一小时为增量使用时间,因此请勿在时间中增加任何分钟。
So, for example, say you wanted to restrict a user account named Simon to using the computer only from 8:00 am to 4:00 pm on Saturday. You would use the command:
因此,举例来说,假设您想限制一个名为Simon的用户帐户,使其只能在星期六的上午8:00至下午4:00使用计算机。 您将使用以下命令:
net user simon /time:Sa,8am-4pm
![tl_cmd1](https://i-blog.csdnimg.cn/blog_migrate/24393f0237179763fec8aa9c7992328d.png)
You can also specify a range of days with the same time limits by separating the days with a hyphen. So, to limit the user to using the computer only on weekdays from 4:00 pm to 8:00 pm, you could use the command:
您还可以通过用连字符分隔天数来指定具有相同时间限制的天数范围。 因此,要限制用户仅在工作日从4:00 pm到8:00 pm使用计算机,可以使用以下命令:
net user simon /time:M-F,4pm-8pm
![tl_cmd2](https://i-blog.csdnimg.cn/blog_migrate/2402eae36649f8556797a4e372128593.png)
Furthermore, you can string multiple day/time limits together by separating them with a semicolon. Let’s put those two time limits we imposed before together in the same command:
此外,您可以使用分号将多个日期/时间限制连在一起。 让我们将之前强加的两个时间限制放到同一命令中:
net user simon /time:Sa,8am-4pm;M-F,4pm-8pm
![tl_cmd3](https://i-blog.csdnimg.cn/blog_migrate/c0bb29d3999a128b40290e75ccd8475e.png)
Using this same format, you can also specify multiple time ranges on the same day. For example, this command limits the user to 6:00 am to 8:00 am and 4:00 pm to 10:00 pm on all weekdays:
使用这种相同的格式,您还可以在同一天指定多个时间范围。 例如,此命令在所有工作日将用户限制为上午6:00至上午8:00,以及下午4:00至下午10:00。
net user simon /time:M-F,6am-8am;M-F,4pm-10pm
![tl_cmd4](https://i-blog.csdnimg.cn/blog_migrate/ffa34b65c10617bfe0310edf794faf0c.png)
You can also remove restrictions from a user by specifying all times:
您还可以通过指定所有时间来消除对用户的限制:
net user simon /time:all
![tl_cmd5](https://i-blog.csdnimg.cn/blog_migrate/c4318b5fa33d6311e8e4ada4a19212c1.png)
Finally, if you use the command but leave the time blank (enter nothing after the time:
part), the user will never be able to log on. That might be useful if you want to lock out an account temporarily, but be careful you don’t leave it blank by accident. Also, if you ever need to display what times you’ve set for a user, you can just type the net user
command followed by the account name:
最后,如果使用命令但将时间留空(在time:
part之后不输入任何内容),则用户将永远无法登录。 如果您想暂时锁定帐户,这可能会很有用,但是请小心不要将其留空。 另外,如果您需要显示为用户设置的时间,则只需键入net user
命令,然后输入帐户名即可:
net user simon
![tl_cmd6](https://i-blog.csdnimg.cn/blog_migrate/b42dd95d5995a917d2cb1ddbd9b1813c.png)
And that’s it. You don’t have to use parental controls or Microsoft accounts to set time limits for users. You just have spend a few minutes in the Command Prompt.
就是这样。 您不必使用家长控制或Microsoft帐户来为用户设置时间限制。 您仅在命令提示符中花了几分钟。
翻译自: https://www.howtogeek.com/250224/how-to-set-time-limits-for-a-regular-account-in-windows-10/
请在系统设置中为输入比率