Home | Community | Message Board


Edabea
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,345
Loc: Geographic Location (Stat...
Placing Logon Time Restrictions *DELETED*
    #2529083 - 04/05/04 09:35 PM (14 years, 2 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: 17,248
Loc: NY/MA/VT Borderlands, USA Flag
Re: Placing Logon Time Restrictions [Re: blink]
    #2529306 - 04/05/04 10:40 PM (14 years, 2 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
* ScreenSaver pass = logon pass in WinXP? RuNE 586 1 06/15/04 02:26 AM
by matts
* Deleting Search History DrinkSolaritea 1,530 4 03/08/02 08:02 PM
by Unknown
* Post deleted by Administrator Alien 1,571 10 06/30/02 11:05 PM
by DONOTDELETE
* Post deleted by users_request MicronMagick 879 1 03/14/02 04:38 AM
by JackMehoff
* KAZAA VIRUS - W32.HLLP.Handy Jammer 1,400 14 02/09/03 08:06 AM
by Fed911
* Million User Video Game Jackal 1,288 14 05/19/03 04:26 AM
by Papaver
* Deleting a file sercurely daussaulit 1,676 13 08/03/03 06:31 PM
by Meph
* Tryin to delete /Movies : Access Denied T0aD 1,028 8 12/07/03 09:07 PM
by TinMan

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

Copyright 1997-2018 Mind Media. Some rights reserved.

Generated in 0.022 seconds spending 0.007 seconds on 19 queries.