If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#16
|
|||
|
|||
getting kids to log off win xp home
Rehan wrote:
OK I admit I havent tried it for local accounts. I presumed it works as stated in the help. Bummer... None of the other solution such as "at"/scheduled task would work according to the requirement of this issue since these will blindly log off the current user whoever he/she is without looking his/her logon hours profile. Ideally one wants to logoff only those users whose logon hours have expired. That could be scripted of course... -- torgeir Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter |
Ads |
#17
|
|||
|
|||
getting kids to log off win xp home
That's understandable based on the description of /forcelogoff. I suggested
using AT or such to force a logoff at a particular time based on users logon hours, such as five minutes after which would then force logoff and user would not be able to log back on because of being outside of permitted hours. Of course that solution would only work on a computer where all users had same logon time restrictions, but it may fit the bill for the current situation. --- Steve "Rehan" wrote in message ... OK I admit I havent tried it for local accounts. I presumed it works as stated in the help. Bummer... None of the other solution such as "at"/scheduled task would work according to the requirement of this issue since these will blindly log off the current user whoever he/she is without looking his/her logon hours profile. Ideally one wants to logoff only those users whose logon hours have expired. Hmmm.... Rehan "Steven L Umbach" wrote in message ... That is my experience, it will not logoff a user from the local console. To do that takes a logoff screensaver or using logoff, shutdown -l, or PsShutdown -o [SysInternals freeware] via the AT command or Scheduled Tasks. I only have been able to get PsShutdown to work for all users on a computer as a Scheduled Task created with administrator credentials. Logoff or shutdown may already be in the \system32 folder on a W2K/XP Pro omputer. --- Steve "Torgeir Bakken (MVP)" wrote in message ... Rehan wrote: (snip) You are right that by default this is the behaviour: if the user is already logged on the system does not log him off. However this can be fixed by using: net accounts /forcelogoff:0 The above command once executed will change the default behaviour. From then on all users will be logged out automatically once their logon time (as specified using "net user /times:..." command) expires. Hi Have you actually been able to make that work (logoff the user from the local computer he is logged into, as a console user)? If you do a Google newsgroup search for this, you will see that many have tried, but not succeeded. And this because as I understand it, this forced logoff policy is a policy for SMB server, i.e. the computer which has a network share accessible from a network. This policy, if enabled on a server, ends the users session with the server when their logon hours expire. Here is a quote from the documentation for Windows XP's "Net accounts" found at http://www.microsoft.com/technet/tre...t_accounts.asp quote /forcelogoff:{minutes | no} Sets the number of minutes to wait before ending a user's session with a server when the user account or valid logon time expires. The default value, no, prevents users from being forced to log off. /quote -- torgeir Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter |
#18
|
|||
|
|||
getting kids to log off win xp home
That AYE software should do the trick actually, with it there is a "the computer can not be turned on" option that you can set for it. I reccomend something like 9pm - 6am or similar for weekdays. Be sure to include a password!
|
|
Thread Tools | |
Display Modes | |
|
|