How to disable user login script, when users login terminal server?

How to disable user login script, when users login terminal server?

Post by Alexander » Sat, 03 Feb 2007 00:53:00


How to disable user login script, when users login terminal server?

Thanks!!
 
 
 

How to disable user login script, when users login terminal server?

Post by getani » Sat, 03 Feb 2007 01:09:04


If you are admin: Let's say your server name is RAMBO, then in the begining
of the logon script, add:

if /i "%computername%" EQU "rambo" goto :EOF


If you are user: You can't stop the script if you login to the domain. Ask
the admin to remove the script from your account.

--
Frane Borozan
http://www.yqcomputer.com/

 
 
 

How to disable user login script, when users login terminal server?

Post by Alexander » Sat, 03 Feb 2007 09:34:36

I am admin, but we have 5 terminal servers. So if modify logon script to
prevent logon script run on terminal session that may not fit our
environment. Any local policy able to deny logon script on terminal session?
 
 
 

How to disable user login script, when users login terminal server?

Post by Vera Noest » Sat, 03 Feb 2007 16:33:30

No, you can use a GPO to prohibit executing of a login script which
you defined in the AD user account.

What you can do is to remove the entry with the login script in the
user account, and instead use a GPO to define a login script on the
client, and use another GPO which does not define a login script on
the TS.
Don't forget the use loopback processing of the GPO for the TS (the
one without a logon script). You'll fins the login script setting
here:

User Configuration - Windows Settings - Scripts
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://www.yqcomputer.com/
*----------- Please reply in newsgroup -------------*

"Alexander Brown" < XXXX@XXXXX.COM > wrote on 02 feb
2007:
 
 
 

How to disable user login script, when users login terminal server?

Post by Vera Noest » Sat, 03 Feb 2007 16:42:25

Oops, first line should be: "No, you can NOT use a GPO..."

"Vera Noest [MVP]" < XXXX@XXXXX.COM > wrote on
02 feb 2007: