Page 1 of 1 1
Topic Options
#48054 - 1999-08-17 10:44 AM NT Logon Script Box
Anonymous
Unregistered


When I run my script on 95 machines the NT Logon Script Box will not close. I have tried some of the suggestions on this forum with no luck. Please help. Below is my script


; LOGON.KIX
;
; KIXSTART LOGON SCRIPT FOR PRECISION RESPONSE CORP.
;
; WRITTEN BY ERIC GREENBERG SYSTEMS ENGINEER, NETERA CORP
;
; UPDATE HISTORY
;
; 8/12/99 INITIAL CODING OF SCRIPT, (ERIC GREENBERG)

;Display Initial Greeting to User
CLS
small
Color b+/n
BOX (0,0,24,79,GRID) ; 'background grid'
Color b/n
BOX (8,21,18,61,Å) ; 'shadow of the box'
Color c+/n
BOX (7,20,18,60,FULL)
Color r+/n
AT (9,25) "Welcome Back @fullname"

Color w+/n
AT (11,25) "Privilege : "
AT (12,25) "Workstation : "
AT (13,25) "Workgroup : "
AT (14,25) "Logon Server : "
AT (15,25) "Current Time : "

Color r+/n
AT (17,22) "PLEASE WAIT WHILE LOGON IS PROCESSED"

Color y+/n
AT (11,40) @priv
AT (12,40) @wksta
AT (13,40) @domain
AT (14,40) @lserver
AT (15,40) @time
AT (17,40) @comment

sleep 5

Color g+/n

; Set Variables
$server1="\\ngg1fsv01" ;This is the new NTServer name for old Prc_Nwfs server.
$server2="\\ngg2fsv02" ;This is the new NTServer name for old Prc_Developers server.

if $locale="Prc_Nt"
$group="Domain Admins"
if ingroup($group)
exit
else

if $locale="Prc_Nt" ;The following lines are for the Prc_Nwfs Users
$group="Grp_Oldnwfs"
if ingroup($group)
use f: "@homeshr"
use g: "$server1\share"
use h: "$server1\apps"
use i: "$server1\db"
endif

$group="Grp_Corp_Treasury"
if ingroup($group)
use k: "$server1\treasury"
use l: "$server1\users"
endif

$group="Grp_Account_Services"
if ingroup($group)
use k: "$server1\tlmkrpts"
endif

$group="Grp_GG_Accounting"
if ingroup($group)
use k: "$server1\acctdept"
use l: "$server1\billing"
endif

$group="Grp_GG_Attshare"
if ingroup($group)
use k: "server1\attshare"
endif

$group="Grp_GG_Priv"
if ingroup($group)
use k: "server1\exec_pri"
endif

$group="Grp_GG_Legal"
if ingroup($group)
use k: "server1\legal"
endif

$group="Grp_GG_Quick_Books"
if ingroup($group)
use k: "server1\quickboo"
endif

$group="Grp_GG_Orgusers"
if ingroup($group)
use k: "server1\lotus"
endif

$group="Grp_GG_Tlmkrpts"
if ingroup($group)
use k: "server1\tlmkrpts"
endif


$group="Grp_OldDev" ;This starts section for old Prc_Developers users
if ingroup($group)
use f: "server2\users"
use g: "server2\share"
use h: "server2\db"
use i: "server2\orawin"
endif

$group="Grp_Qa_Prodstaging"
if ingroup($group)
use k: "server2\production staging"
use l: "server2\quality"
endif

$group="Grp_1313-Ml"
if ingroup($group)
use k: "server2\attaws" ;this share needs to be created by nwgw.
endif ;Prc_Ml\ISG:\Attaws

$group="Grp_Dev_Dbshare"
if ingroup($group)
use m: "server2\mldb" ;this share needs to be created by nwgw.
use n: "server2\deerwooddb" ;this share needs to be created by nwgw.
use o: "server2\margatedbold" ;this share needs to be created by nwgw.
use p: "server2\opalockadb" ;this share needs to be created by nwgw.
endif

$group="Grp_Dev_Ucs"
if ingroup($group)
use k: "server2\Ucs_Isg_Development"
endif

$group="Grp_Ml_Isg"
if ingroup($group)
use k: "server2\common" ;this share needs to be created by nwgw.
use l: "server2\attaws" ;Prc_Ml\ISG:\Attaws \\...\common

cookie1
cookie1
exit



Top
#48055 - 1999-08-23 03:47 AM Re: NT Logon Script Box
Anonymous
Unregistered


Do you have all the required files for Win95 in the \\server\netlogon share ?

------------------
Lon Geefshuysen (MCP)
kixtart.to/lon
lon@kixtart.to


Top
#48056 - 1999-08-24 09:48 AM Re: NT Logon Script Box
Anonymous
Unregistered


Are you having this problem when running other scripts???
Have you checked the properties of the LMSCRIPT.PIF, which is the pif associated with the LMSCRIPT.EXE,(controlls such things as how the logon script is handeled.)

Top
#48057 - 1999-08-26 09:01 AM Re: NT Logon Script Box
Anonymous
Unregistered


I think one "cookie1" command is ok. after this command line, the "Exit" is not really necessary...
U can run your script in debug mode by adding "/d". For example :
%0\..\Kix32.exe script.kix /d
if the script is ok, then the problem doesn't come from there...

Top
#48058 - 1999-09-03 04:29 AM Re: NT Logon Script Box
Anonymous
Unregistered


Looks like a missing "endif" before the cookie1 could be your problem.
Top
#48059 - 1999-09-04 12:23 AM Re: NT Logon Script Box
Anonymous
Unregistered


It actually looks like you are missing a few endif's. I like to nest them so I can sort of tell what is going on. Take a look and see what you think. I re-did it below.

; LOGON.KIX
;
; KIXSTART LOGON SCRIPT FOR PRECISION RESPONSE CORP.
;
; WRITTEN BY ERIC GREENBERG SYSTEMS ENGINEER, NETERA CORP
;
; UPDATE HISTORY
;
; 8/12/99 INITIAL CODING OF SCRIPT, (ERIC GREENBERG)

;Display Initial Greeting to User
CLS
small
Color b+/n
BOX (0,0,24,79,GRID) ; 'background grid'
Color b/n
BOX (8,21,18,61,Å) ; 'shadow of the box'
Color c+/n
BOX (7,20,18,60,FULL)
Color r+/n
AT (9,25) "Welcome Back @fullname"

Color w+/n
AT (11,25) "Privilege : "
AT (12,25) "Workstation : "
AT (13,25) "Workgroup : "
AT (14,25) "Logon Server : "
AT (15,25) "Current Time : "


Color r+/n
AT (17,22) "PLEASE WAIT WHILE LOGON IS PROCESSED"

Color y+/n
AT (11,40) @priv
AT (12,40) @wksta
AT (13,40) @domain
AT (14,40) @lserver
AT (15,40) @time
AT (17,40) @comment

sleep 5

Color g+/n

; Set Variables
$server1="\\ngg1fsv01" ;This is the new NTServer name for old Prc_Nwfs server.
$server2="\\ngg2fsv02" ;This is the new NTServer name for old Prc_Developers server.

if $locale="Prc_Nt"
$group="Domain Admins"
if ingroup($group)
exit
endif
else

if $locale="Prc_Nt" ;The following lines are for the Prc_Nwfs Users
$group="Grp_Oldnwfs"
if ingroup($group)
use f: "@homeshr"
use g: "$server1\share"
use h: "$server1\apps"
use i: "$server1\db"
endif

$group="Grp_Corp_Treasury"
if ingroup($group)
use k: "$server1\treasury"
use l: "$server1\users"
endif

$group="Grp_Account_Services"
if ingroup($group)
use k: "$server1\tlmkrpts"
endif

$group="Grp_GG_Accounting"
if ingroup($group)
use k: "$server1\acctdept"
use l: "$server1\billing"
endif

$group="Grp_GG_Attshare"
if ingroup($group)
use k: "server1\attshare"
endif

$group="Grp_GG_Priv"
if ingroup($group)
use k: "server1\exec_pri"
endif

$group="Grp_GG_Legal"
if ingroup($group)
use k: "server1\legal"
endif

$group="Grp_GG_Quick_Books"
if ingroup($group)
use k: "server1\quickboo"
endif

$group="Grp_GG_Orgusers"
if ingroup($group)
use k: "server1\lotus"
endif

$group="Grp_GG_Tlmkrpts"
if ingroup($group)
use k: "server1\tlmkrpts"
endif

$group="Grp_OldDev" ;This starts section for old Prc_Developers users
if ingroup($group)
use f: "server2\users"
use g: "server2\share"
use h: "server2\db"
use i: "server2\orawin"
endif

$group="Grp_Qa_Prodstaging"
if ingroup($group)
use k: "server2\production staging"
use l: "server2\quality"
endif

$group="Grp_1313-Ml"
if ingroup($group)
use k: "server2\attaws" ;this share needs to be created by nwgw.
endif ;Prc_Ml\ISG:\Attaws

$group="Grp_Dev_Dbshare"
if ingroup($group)
use m: "server2\mldb" ;this share needs to be created by nwgw.
use n: "server2\deerwooddb" ;this share needs to be created by nwgw.
use o: "server2\margatedbold" ;this share needs to be created by nwgw.
use p: "server2\opalockadb" ;this share needs to be created by nwgw.
endif

$group="Grp_Dev_Ucs"
if ingroup($group)
use k: "server2\Ucs_Isg_Development"
endif

$group="Grp_Ml_Isg"
if ingroup($group)
use k: "server2\common" ;this share needs to be created by nwgw.
use l: "server2\attaws" ;Prc_Ml\ISG:\Attaws \\...\common
endif
endif
endif

cookie1
cookie1
exit

Top
#48060 - 1999-09-04 12:25 AM Re: NT Logon Script Box
Anonymous
Unregistered


I guess this thing strips out your spaces. sorry.
Top
#48061 - 1999-09-04 12:33 AM Re: NT Logon Script Box
Anonymous
Unregistered


Ok I did it again but I put a dot there to hold the spaces in. I ended up putting 3 endif's in.

; LOGON.KIX
;
; KIXSTART LOGON SCRIPT FOR PRECISION RESPONSE CORP.
;
; WRITTEN BY ERIC GREENBERG SYSTEMS ENGINEER, NETERA CORP
;
; UPDATE HISTORY
;
; 8/12/99 INITIAL CODING OF SCRIPT, (ERIC GREENBERG)

;Display Initial Greeting to User
CLS
small
Color b+/n
BOX (0,0,24,79,GRID) ; 'background grid'
Color b/n
BOX (8,21,18,61,Å) ; 'shadow of the box'
Color c+/n
BOX (7,20,18,60,FULL)
Color r+/n
AT (9,25) "Welcome Back @fullname"

Color w+/n
AT (11,25) "Privilege : "
AT (12,25) "Workstation : "
AT (13,25) "Workgroup : "
AT (14,25) "Logon Server : "
AT (15,25) "Current Time : "


Color r+/n
AT (17,22) "PLEASE WAIT WHILE LOGON IS PROCESSED"

Color y+/n
AT (11,40) @priv
AT (12,40) @wksta
AT (13,40) @domain
AT (14,40) @lserver
AT (15,40) @time
AT (17,40) @comment

sleep 5

Color g+/n

; Set Variables
$server1="\\ngg1fsv01" ;This is the new NTServer name for old Prc_Nwfs server.
$server2="\\ngg2fsv02" ;This is the new NTServer name for old Prc_Developers server.

.if $locale="Prc_Nt"
. $group="Domain Admins"
. if ingroup($group)
. exit
. endif
.else
.
. if $locale="Prc_Nt" ;The following lines are for the Prc_Nwfs Users
. $group="Grp_Oldnwfs"
. if ingroup($group)
. use f: "@homeshr"
. use g: "$server1\share"
. use h: "$server1\apps"
. use i: "$server1\db"
. endif
.
. $group="Grp_Corp_Treasury"
. if ingroup($group)
. use k: "$server1\treasury"
. use l: "$server1\users"
. endif
.
. $group="Grp_Account_Services"
. if ingroup($group)
. use k: "$server1\tlmkrpts"
. endif
.
. $group="Grp_GG_Accounting"
. if ingroup($group)
. use k: "$server1\acctdept"
. use l: "$server1\billing"
. endif
.
. $group="Grp_GG_Attshare"
. if ingroup($group)
. use k: "server1\attshare"
. endif
.
. $group="Grp_GG_Priv"
. if ingroup($group)
. use k: "server1\exec_pri"
. endif
.
. $group="Grp_GG_Legal"
. if ingroup($group)
. use k: "server1\legal"
. endif
.
. $group="Grp_GG_Quick_Books"
. if ingroup($group)
. use k: "server1\quickboo"
. endif
.
. $group="Grp_GG_Orgusers"
. if ingroup($group)
. use k: "server1\lotus"
. endif
.
. $group="Grp_GG_Tlmkrpts"
. if ingroup($group)
. use k: "server1\tlmkrpts"
. endif
.
. $group="Grp_OldDev" ;This starts section for old Prc_Developers users
. if ingroup($group)
. use f: "server2\users"
. use g: "server2\share"
. use h: "server2\db"
. use i: "server2\orawin"
. endif
.
. $group="Grp_Qa_Prodstaging"
. if ingroup($group)
. use k: "server2\production staging"
. use l: "server2\quality"
. endif
.
. $group="Grp_1313-Ml"
. if ingroup($group)
. use k: "server2\attaws" ;this share needs to be created by nwgw.
. endif ;Prc_Ml\ISG:\Attaws
.
. $group="Grp_Dev_Dbshare"
. if ingroup($group)
. use m: "server2\mldb" ;this share needs to be created by nwgw.
. use n: "server2\deerwooddb" ;this share needs to be created by nwgw.
. use o: "server2\margatedbold" ;this share needs to be created by nwgw.
. use p: "server2\opalockadb" ;this share needs to be created by nwgw.
. endif
.
. $group="Grp_Dev_Ucs"
. if ingroup($group)
. use k: "server2\Ucs_Isg_Development"
. endif
.
. $group="Grp_Ml_Isg"
. if ingroup($group)
. use k: "server2\common" ;this share needs to be created by nwgw.
. use l: "server2\attaws" ;Prc_Ml\ISG:\Attaws \\...\common
. endif
. endif
.endif

cookie1
cookie1
exit

Top
#48062 - 1999-09-04 12:43 AM Re: NT Logon Script Box
Anonymous
Unregistered


that post did not work eather. They must be stripping out the spaces when posting. Anyway, go though your script and close all your if's with endif's. (I added 4 endif's) I like to space in 3 the next line after a if so I can see to close it. That works good until you several pages and 4 to 5 if's deep.
Example:
(I used dots insted of spaces because the spaces get striped out when posting.)
$group="Grp_Qa_Prodstaging"
if ingroup($group)
...use k: "server2\production staging"
...use l: "server2\quality"
endif

Top
Page 1 of 1 1


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

Who's Online
0 registered and 2312 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.133 seconds in which 0.106 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