Win2K3 terminal services session lost - "user-initiated log-off"?

Win2K3 terminal services session lost - "user-initiated log-off"?

Post by jdmclemor » Tue, 15 Aug 2006 22:44:36

I have a Windows 2003 EE SP1 server with users using terminal services
to connect. Currently, terminal services is configured to not end a
disconnected session for 7 days (necessary with this project). Active
and Idle sessions are never disconnected.

So yesterday, a user ts'd in, started up a job, then disconnected by
"x'ing" out of the Remote Desktop app (from an XP client). The user
shut down his machine,
then the next morning started it up and ts'd in again expecting to
connect to the same session. It was gone.

Event log shows a "User initiated log-off" roughly 1.5 hours after he
claimed he disconnected yesterday.

I didn't think a shutdown of your client machine would affect your
session on the server...would it? Anybody ever see this "user initiated

log-off" occur when a user did NOT initiate it?


1. log off Terminal Services session

2. How do you log off a Terminal Server session user via WSH script?

Is there some way which will let me force a user to log off from a
terminal server session while running a script and get an error. In my
particular case, I am mapping drives and if I can't map a drive for
some reason, I do a check which will display a message box telling the
user about the drive mapping problem, but once they hit the OK button I
want to be able to force them off (to be automatically logged off from
the terminal server, closing their rdp connection). Is this something
that can be done in VB Script? How can it be done? I already use the
following code which works to log the user off a non-terminal server

Set colOperatingSystems = GetObject("winmgmts:" &
* from Win32_OperatingSystem")

For Each objOperatingSystem In colOperatingSystems

Is there a way to script the terminal server session logoff?
Thank you in advance for your advice and/or suggestions.

3. MSN Messenger prevents user from log off in Terminal Server Session

4. Messenger prevents user from log off in Terminal Server Session

5. auto log-off after 5-10 mins w/terminal service

6. auto log-off after 5-10 min to microsoft terminal service

7. install win2k3 terminal service device CAL on Win2k terminal server

8. Lose user settings when PC Reboot's or user logs off

9. Script to log out disconnected sessions in Terminal Services?

10. Mapping my Terminal Services User Profile to my Terminal Services Home Folder

11. Logging in and Getting Another User's Session with Windows 2003 Terminal Server

12. Warning message to log off a Terminal Services Connection

13. Logging off of Terminal Services

14. Log off from a Terminal Services on Windows 2000

15. Terminal Services receives "Power Meter" box when logging off