Re: getting kids to log off win xp home

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 02/05/04


Date: Thu, 05 Feb 2004 20:09:50 +0100

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/treeview/default.asp?url=/technet/prodtechnol/winxppro/proddocs/net_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


Relevant Pages

  • Re: Force Log Off When Logon Hours Expire
    ... >You can't use this setting for console logoff. ... >This forced logoff policy is a policy for SMB server, ... >torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windows.group_policy)
  • Re: How to enforce log off in WinXP when user was loged on 2 hours?
    ... This forced logoff policy is a policy for SMB server, ... which has a network share accessible from a network. ... 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/default.mspx. ...
    (microsoft.public.windows.server.scripting)
  • Re: automatically log off users logon time not working
    ... I applied denied logon hours between 2-4am Sunday thru Saturday. ... This forced logoff policy is a policy for SMB server, ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windows.server.general)
  • Re: automatically log off users logon time not working
    ... I applied denied logon hours between 2-4am Sunday thru Saturday. ... This forced logoff policy is a policy for SMB server, ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windows.server.setup)
  • Re: automatically log off users logon time not working
    ... I applied denied logon hours between 2-4am Sunday thru Saturday. ... This forced logoff policy is a policy for SMB server, ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windows.group_policy)