控制用户登录的时间

  curve  
 

Controlling User Logon Hours

In Windows XP Professional it is possible to set limits on the times a certain user account is able to logon to the computer.
To set this up go to Start > Run and Type cmd
When the command Window appears enter your requirements in one of the following 3 formats

net user Kirsty /time:M-F,08:00-17:00  Limits the user Kirsty to logon Monday- Friday between 8am and 5pm
net user Kirsty /time:M-F,8am-5pm  The same thing can also be expressed as above using the 12 hour clock
net user Kirsty /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00  This shows the easiest way of setting limits that differ on multiple days.
To express Saturday and Sunday use 'sa' and 'su'.

To remove time restrictions: Go to Start > Run and type in CMD
Then type the following into the command line replacing Kirsty with the name of your user

net user Kirsty /time:all

This will allow a user only to logon within the set time but will not force them to be logged off when the allocated time expires.

Logon hours will apply to all accounts but administrator level accounts have the power to change them using the net user command.
As part of a domain this process can be managed differently on the domain controller.

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值