Page 1 of 1 1
Topic Options
#30898 - 2002-10-17 10:24 PM Logon script not running on my terminal server
Eric Larsen Offline
Lurker

Registered: 2002-10-17
Posts: 4
Loc: Tualatin, OR.
Running the latest version of Kixtart. logon script works fine when logging onto a workstation in the same domain yet when I log onto my terminal server It fails to execute. Manually running from \\server\netlogon\logon.bat works just fine.

What am I missing on my terminal server? (win2K terminal server sp2)
-Eric [Confused]

Top
#30899 - 2002-10-17 10:34 PM Re: Logon script not running on my terminal server
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Works 'out of the box' on my Win2k SP2 TS. Must be the way you set it up.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30900 - 2002-10-18 07:35 AM Re: Logon script not running on my terminal server
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Eric,

First of all..

Welcome to the board!

In your NTLogon.BAT file, Les is right.. How are you "Calling" your script?

You may want to refer to the following:

Deployment of Kix Scripts

Q318689

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#30901 - 2002-10-18 03:19 PM Re: Logon script not running on my terminal server
Eric Larsen Offline
Lurker

Registered: 2002-10-17
Posts: 4
Loc: Tualatin, OR.
Thanks for the welcome. Les and Kent, my logon.bat file is as follows.

@echo off
%0\..\kix32.exe %0\..\login.kix

This works just fine for my 2k boxes that I am testing with yet will not execute on my terminal server. After reading q318689 I attempted this bat

@echo off
rem %0\..\kix32.exe %0\..\login.kix
kix32.exe login.kix

This failed to execute anywhere.

All of my workstations are either 2K or xp so I do not need to worry about any 9x compatibility.

PS. Kent I am just down the road from you in Tualatin, Or. Howdy neighbor.

-Eric

Top
#30902 - 2002-10-18 03:30 PM Re: Logon script not running on my terminal server
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Eric,
If your script works from onther Win2k boxes then there's nothing wrong with how you call it. I suspect there's either something in the script itself or hor you have the TS setup.

Start by creating LOGON2.BAT in netlogon with a simple "Hello World".

I.E.
@ECHO OFF
ECHO Hello World
PAUSE

Then change the test user's profile to LOGON2.BAT and test if you make it that far. If it does move on to test #2.

Change the LOGON2.BAT to launch a TEST.KIX script.

F.E.
Break On
"Hello World" ?
Get $_

See if that works. You may have to turn on RunLogonScriptSysnc to see the console.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30903 - 2002-10-18 06:10 PM Re: Logon script not running on my terminal server
Eric Larsen Offline
Lurker

Registered: 2002-10-17
Posts: 4
Loc: Tualatin, OR.
Ok, I found the Group Policy object Run Logon Script Synchronously (now enabled)
-No display
set Run Legacy Logon Script Hidden (Disabled)
-No display
set Run Logon Script Visable (Enabled)
-No display... [Confused]

Top
#30904 - 2002-10-18 06:40 PM Re: Logon script not running on my terminal server
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Eric,

Here is what we are using to execute this from the server...

code:
%SystemDrive%\Scripts\kix32.exe %LOGONSERVER%\NETLOGON\login.kix /f

Note: the /f to flush the token cache..

If you are not running from the client for the excutable..
code:
%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\login.kix /f

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#30905 - 2002-10-18 06:47 PM Re: Logon script not running on my terminal server
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Then you need to look at the network settings on the TS like Client, Protocol, Binding and Provider Order, etc.

Here's a cheat-sheet on my TS that outlines the logon process.

After successfully negotiating the MSGINA, the logon script sequence is as follows:

The Domain logon script as governed by the User Environment Profile
The NetWare login script for the Organization FortFrances
The WTS logon script 'C:\WINNT\system32\usrlogon.cmd'
as governed by the registry key 'AppSetup'
in 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon'
All other scripts are called in turn from within usrlogon.cmd, Usrlogn1.cmd, Usrlogn2.cmd, and those in C:\WINNT\Application Compatibility Scripts\ or sub-folders beneath.

While it is possible to assign logon and/or logoff scripts from within Group Policies, non are assigned at present.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30906 - 2002-10-18 08:50 PM Re: Logon script not running on my terminal server
Eric Larsen Offline
Lurker

Registered: 2002-10-17
Posts: 4
Loc: Tualatin, OR.
Ah, Less that was it. Thanks for the assistance!
-Eric
[Smile]

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.056 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org