Title: | Kit: Note 4229; Please use NOTED::PWDOSWIN5 for V4.x server |
Notice: | Kit: Note 4229; Please use NOTED::PWDOSWIN5 for V4.x server |
Moderator: | CPEEDY::KENNEDY |
Created: | Fri Dec 18 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 4319 |
Total number of notes: | 18478 |
I have a customer who wants to restrict a users login period to between 8am and 5pm and then between 9pm and Midnight each workday. His is using the command $NET USER username /TIME: but is not able to get the syntax of the timeperiod correct. He keeps getting NET3768 ---------------------------------------------- net helpmsg 3768 NET3768: An illegal day range has been supplied. EXPLANATION You specified an illegal range of days. You must also type a hyphen between the first and last days of each range. ACTION When specifying days, use only the complete names of the days or valid LAN Manager abbreviations. Valid abbreviations are: M, T, W, Th, F, Sa, Su Be sure to use a hyphen to separate the beginning and end of each range of days. ----------------------------------------------- This is possible via the ADMIN PATHWORKS utility, but he is asking how exactly to do this via the DCL command NET USER. He's concerned that the ADMIN PATHWORKS utility will not be around in an upcoming version and he needs this functionality from the NET commands. Anyway, is this command syntax documented somewhere? -Linda
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
4246.1 | Phew, it _does_ work | VMSNET::P_NUNEZ | Fri Apr 04 1997 10:20 | 29 | |
Linda, It's likely just a spacing issue. The net commands are very, very sensitive to where you put a space. But it does work (on ninemm): $ net user nunez /time:m-f,8am-5pm;m-f,9pm-12am The command completed successfully. Notice no spaces in the entire /time string and I did have to specify the days (m-f) for both time frames even though they cover the same days. Separate different time frames by a semi-colon (;). $ net user nunez ... ... ... Logon hours allowed Monday 08:00AM - 05:00PM Monday 09:00PM - Tuesday 00:00AM Tuesday 08:00AM - 05:00PM Tuesday 09:00PM - Wednesday 00:00AM Wednesday 08:00AM - 05:00PM Wednesday 09:00PM - Thursday 00:00AM Thursday 08:00AM - 05:00PM Thursday 09:00PM - Friday 00:00AM Friday 08:00AM - 05:00PM Friday 09:00PM - Saturday 00:00AM Paul | |||||
4246.2 | Might hurt | VMSNET::P_NUNEZ | Fri Apr 04 1997 10:24 | 8 | |
On an aside, setting up restricted logon hours has been known to trigger problems in the server (problems you might not have if you weren't). Hate to be so vague, but you might want to look thru some recent release notes (v5.0e eco1 and v5.0d eco3) for indications of fixes (unless the customer is already at v5.0e eco1). Paul |