Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-22-2006, 04:55 PM   #1
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Local logon time restrictions

Is it possible to set up logon time restrictions for a group on a local Windows XP Pro computer that's not using Active Directory? What I want to do is set it up so that members of the Users group can't log on at certain times. The only way I have found of doing this is using Group Policy Editor (N/A in this case) or by using the NET USER /TIMES command (doesn't apply to groups, and I don't want to do it for every user on a machine). NET LOCALGROUP doesn't have the TIMES switch. Any ideas?
doctorgonzo is offline   Reply With Quote
Old 03-23-2006, 04:53 PM   #2
Member (9 bit)
 
DynamicTech's Avatar
 
Join Date: Jan 2006
Posts: 343
I have a suggestion, after researching various net commands, and coming up empty for a login solution:
Create a batch file like:
shutdown.exe -l -f -c "System usage is not allowed at this time."

Go to system tools >> scheduled tasks.
Schedule this batch file to run at (login?) starting at say 9 pm and run for say, 10 hours.
Hope this helps.
DynamicTech is offline   Reply With Quote
Old 03-23-2006, 04:55 PM   #3
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Yeah, I did think about that. That may be what I end up doing, setting up a scheduled task to run for everybody at 7 PM if it is still on.
doctorgonzo is offline   Reply With Quote
Old 03-23-2006, 05:04 PM   #4
Member (9 bit)
 
DynamicTech's Avatar
 
Join Date: Jan 2006
Posts: 343
you can set up the permissions so some users/groups can only read the task, while others can read and execute, etc. just like setting NTFS file permissions.
DynamicTech is offline   Reply With Quote
Old 04-05-2006, 10:08 AM   #5
Member (9 bit)
 
DynamicTech's Avatar
 
Join Date: Jan 2006
Posts: 343
I have a solution for windows XP (might work on 2K, but I'm not sure) type in:
netuser {the target user account} /time:M-F,7am-10pm

you cannot use any spaces in the command. Legal day values are:
M,T,W,Th,F,Sa,Su

to force logoff after a certain period:

net accounts /forcelogoff:{minutes}

Last edited by DynamicTech; 04-05-2006 at 10:14 AM.
DynamicTech is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:39 PM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0