Home | Community | Message Board


Azarius
Please support our sponsors.

General Interest >> Science and Technology

Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Jump to first unread post. Pages: 1
Invisibleblink
eye of horus
 User Gallery

Folding@home Statistics
Registered: 03/31/02
Posts: 11,343
Loc: Geographic Location (Stat...
Placing Logon Time Restrictions *DELETED*
    #2529083 - 04/05/04 09:35 PM (12 years, 7 months ago)

Post deleted by blinkidiot

Reason for deletion: Im sorry



Post Extras: Print Post  Remind Me! Notify Moderator
InvisibleYthanA
٩(●̮•̃)۶
Male

Registered: 08/08/97
Posts: 16,833
Loc: NY/MA/VT Border, USA Flag
Re: Placing Logon Time Restrictions [Re: blink]
    #2529306 - 04/05/04 10:40 PM (12 years, 7 months ago)

You can restrict when a user is allowed to log on to the system using the "net user" command. Here are some examples:

net user ythan /time:M-F,9am-5pm
net user ythan /time:M-F,09:00-17:00
net user ythan /time:M,9am-5pm;T,3pm-7pm;W-F,4:20-16:20

To allow a user to log on any time, use this command:

net user ythan /time:all

Unfortunately, as far as I know there's no way to force the user to log off once their allotted time is up. As a sloppy workaround, you could schedule this command to run when you want the user gone:

C:\WINDOWS\RUNDLL32.EXE SHELL32.DLL,SHExitWindowsEx 0

This will force the current user to log off, but it'll happen to any user whether their account has time restrictions or not. You could probably write a pretty simple script for Windows Scripting Host (it's good for more than just viruses!) to detect who is logged on and only boot them if they're on a restricted list, but this exercise is left up to the reader. :wink:

Hope this helps,

-Y


Post Extras: Print Post  Remind Me! Notify Moderator
Jump to top. Pages: 1

General Interest >> Science and Technology

Similar ThreadsPosterViewsRepliesLast post
* Gaining access to other user accounts Mushie_Man 840 6 08/31/05 09:41 PM
by MarioNett
* ScreenSaver pass = logon pass in WinXP? RuNE 552 1 06/15/04 02:26 AM
by matts
* X Windows Users! blink 683 10 11/22/04 11:11 PM
by AhronZombi
* Scientific Study Concludes that Ecstasy Harms the Brain of First Time Users
( 1 2 all )
JackTackle 5,451 26 12/06/06 11:09 AM
by badchad
* Apple users Cosm 878 18 01/15/05 03:51 PM
by automan
* Morrowind User's Manual PDF ivi 5,995 2 09/04/07 09:52 AM
by ivi
* Calling gentoo users
( 1 2 all )
supra 2,042 28 10/20/08 10:23 PM
by automan
* Deleting Search History DrinkSolaritea 1,465 4 03/08/02 08:02 PM
by Unknown

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Lana, trendal, Diploid, automan
389 topic views. 0 members, 3 guests and 2 web crawlers are browsing this forum.
[ Toggle Favorite | Print Topic | Stats ]
Search this thread:
Shroom Supply
Please support our sponsors.

Copyright 1997-2016 Mind Media. Some rights reserved.

Generated in 0.021 seconds spending 0.002 seconds on 14 queries.