User Login in AD

By damien ·
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


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

I would reckon that this would work

by neilb@uk In reply to User Login in AD

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

Type net user username /time:logon_times 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!


Related Discussions

Related Forums