14th July 22:39
Log in and Log out
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.
for /f "Tokens=*" %%a in ('PsLoggedOn -L %user%^|find /i "%user%"') do (
if "%OK%" EQU "N" endlocal&goto :EOF
set line=%line:* onto =#%
set line=%line: locally.=%
PsShutdown -O \\%line%
If autlogon (tip 4) is enabled, you could schedule a restart in the morning using PsShutdown, and that
will log the user on.
Windows Server MVP