Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Windows 2000 Server (TECHNET) > Log in and Log out
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 14th July 22:39
scuba19
External User
 
Posts: 1
Default Log in and Log out



Is there a group policy that can log off a user at a specific time every
evening and log them on at a particular time every morning ?
  Reply With Quote


  sponsored links


2 14th July 22:39
jerold schulman
External User
 
Posts: 1
Default Log in and Log out



No.

You can log a specific user off by scheduling a batch.
See tip 4086 » PsShutdown command-line freeware works on both the local and remote computers.
in the 'Tips & Tricks' at http://www.jsifaq.com

See tip 2890 » LoggedOn freeware locates where a user is logged on or who is logged onto a local or remote computer.

@echo off
setlocal
set user=Jennifer
set OK=N
for /f "Tokens=*" %%a in ('PsLoggedOn -L %user%^|find /i "%user%"') do (
set OK=Y
set line=%%a
)
if "%OK%" EQU "N" endlocal&goto :EOF
set line=%line:* onto =#%
set line=%line:#=%
set line=%line: locally.=%
PsShutdown -O \\%line%
endlocal

If autlogon (tip 4) is enabled, you could schedule a restart in the morning using PsShutdown, and that
will log the user on.


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666