Jump to content

Terminal Session Logouts Immediately


Recommended Posts

Guest Vincent
Posted

I have a puzzling problem. Whenever I define a logon script

underneath the Terminal Services Configuration console, I experience

logon problems. More specifically, the sever terminates the terminal

session as soon as the logon script finishes executing. There is

nothing odd about my logon script. It is simply mapping some ports to

local printer shares. If I remove the logon script, I can logon

normally. If I remove the script and logon normally, I can also

execute the script without any problems. However, whenever I specify

to run the script automatically, either as a global or per-user

setting, it immediately logs me out! Can anyone please help me with

this? Thank you.

 

Vincent

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Vera Noest [MVP]
Posted

Re: Terminal Session Logouts Immediately

 

If I understand you correctly, then you define the logon script as

the starting application, is that correct?

If so, then the behaviour you see is by design. That's exactly what

a connection with a starting application is supposed to do: execute

the application automatically, and when the application exits, log

the session off.

 

Logon scripts can be defined in a number of places. If this script

is specific for logons to a TS, the recommended method is to define

it in a Group Policy which is linked to the OU which contains the

TS machine account. You'll find the setting here:

 

User Configuration - Windows Settings - Scripts

Logon

Logoff

 

And since this is a User Configuration setting, you also need to

use loopback processing of the GPO, which is done here:

 

Computer Configuration - Administrative Templates - System - Group

Policy

"User Group Policy loopback processing mode" - "Replace"

 

_________________________________________________________

Vera Noest

MCSE, CCEA, Microsoft MVP - Terminal Server

TS troubleshooting: http://ts.veranoest.net

___ please respond in newsgroup, NOT by private email ___

 

Vincent <animedreamer@verizon.net> wrote on 05 dec 2007 in

microsoft.public.windows.terminal_services:

> I have a puzzling problem. Whenever I define a logon script

> underneath the Terminal Services Configuration console, I

> experience logon problems. More specifically, the sever

> terminates the terminal session as soon as the logon script

> finishes executing. There is nothing odd about my logon script.

> It is simply mapping some ports to local printer shares. If I

> remove the logon script, I can logon normally. If I remove the

> script and logon normally, I can also execute the script without

> any problems. However, whenever I specify to run the script

> automatically, either as a global or per-user setting, it

> immediately logs me out! Can anyone please help me with this?

> Thank you.

>

> Vincent


×
×
  • Create New...