Question Locked

User Login in AD

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I would like to know how to apply time frame for a certain group.

and time frame should be 8.45am to 5.30pm.

ofcourse in AD it only has full hours can't apply minutes.

This is Win 2003 AD.

Please reply ASAP

Thanks in advance

Damien

2 replies

by Member 25348569

You'll have to do it from the command line:

Type [b]net user username /time:logon_times [/b] and then press ENTER.

It uses fairly simple syntax:

Days are abbreviated - M,T,W,Th,F,Sa,Su and you create a range with hyphens i.e. M-F.
Hours in 24-hour notation is easiest with hyphens to give a range i.e. 08:15-17:30.
A value of all means that a user can always log on.
Do not use spaces between days or times.

net user Neil /time:M-F,08:15-17:30

For a bunch of users, put the names into a text file and then type:

for/F %i in (userlist.txt) do net user %i /time:monday-friday,08:00-17:30

Don't forget to enforce login with a GPO.

Be warned, though, that this is absolute guesswork as I've never tried it other than using whole hours so let me have some feedback and a thumbs up if it works!

Neil :D

This discussion is closed to new replies.