Page 1 of 1 1
Topic Options
#108261 - 2003-11-18 06:49 PM Netlogon Command Shell Window
James_Ford Offline
Lurker

Registered: 2003-11-18
Posts: 3
I have recently created a login script which displays user information and mappes local drives according to group membership. I implemented Kixtart by using a kix file and placing Kix32 in the Netlogon directory of the Domain controller and setting Kix32.exe as the login script. Everything has worked fine except that the kixtart script runs minimized instead of in maximized mode. Does anyone know how to run kixtart so when users log on they will see the kixtart window.
Top
#108262 - 2003-11-18 07:20 PM Re: Netlogon Command Shell Window
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

Use SetConsole("Maximize") and SetConsole("AlwaysOnTop") at the beginning of your script.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#108263 - 2003-11-18 07:39 PM Re: Netlogon Command Shell Window
James_Ford Offline
Lurker

Registered: 2003-11-18
Posts: 3
Using Setconsole("maximized"), the window is maximized over the correct portions of the window and "alwaysontop" doesn't seem to do the trick. Here is a copy of the code I am using:

Code:

; Domain Logon Script
; Written by: James Ford
; Created: November 1, 2003
; Description: Displays a login screen to users
; Deletes old mappings and creates new ones depending on group membership
; Revisions
; 11/10/2003
; Enabled the script to run in maximized mode displaying content to users

BREAK ON ; Disables users ability to interrupt the kixtart script

If SetConsole ("maximize") = 0
? "Console Maximized......"
Endif
cls

CLS ; Clears the screen
Color b/b ; Sets the Background Color of Splash Screen
Box (0,0,24,79,GRID) ; Size & Position of Splash Screen
Color n+/n ; Border of Inner Box
Box (7,20,17,60,FULL) ; Size & Position of Inner Box

$Title = "Public Safety Network Login" ; Variable Definition
Color n+/n ; Sets Color of Title Border
Box ( 2, 2, 4, Len ($Title + 8) + 4, FULL ) ; Size & Position of Title Border
Color c+/n ; Sets Color of Title Text
At ( 3, 4 ) $Title ; Display the institutions name

Color w+/n ; Sets the Color of the Text
AT ( 9,25) "Userid : " ; Displays Text inside Inner Box
AT (10,25) "Full name : " ; Displays Text inside Inner Box
AT (11,25) "Privilege : " ; Displays Text inside Inner Box
AT (12,25) "Workstation : " ; Displays Text inside Inner Box
AT (13,25) "Domain : " ; Displays Text inside Inner Box
AT (14,25) "Logon Server : " ; Displays Text inside Inner Box
AT (15,25) "Windows Version : " ; Displays Text inside Inner Box

Color c+/n ; Sets the Color of the Text
AT ( 9,40) @userid ; Displays User ID
AT (10,40) @fullname ; Displays Users Full Name
AT (11,40) @priv ; Displays users Domain Privelege
AT (12,40) @wksta ; Displays the name of the Workstation
AT (13,40) @domain ; Displays the Domain Name
AT (14,40) @lserver ; Displays the name of the Domain Controller
AT (15,43) @dos ; Displays the current Time
Sleep 5

:Domain_Admin
If InGroup ("Domain Admins")
CLS
AT (13,30) "Mapping Additional Drives"
Use p: "\\viking-fairfax\share"
EndIf

If InGroup ("Domain Users")
CLS
AT (13,30) "Mapping Additional Drives"
Use p: "\\viking-fairfax\share"
EndIf

If InGroup ("FTP Admins")
CLS
AT (13,30) "Mapping Additional Drives"
Use o: "\\psmagic1\FTP"
EndIf

:END
Exit


Top
#108264 - 2003-11-19 12:00 AM Re: Netlogon Command Shell Window
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Which environment you are running it? Are you using WKIX32 instead of KIX32?
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#108265 - 2003-11-19 12:09 AM Re: Netlogon Command Shell Window
James_Ford Offline
Lurker

Registered: 2003-11-18
Posts: 3
I am using kix32. I can only acheive the desired effect by calling Kix32.exe from a batch file. I created a batch file called kix.bat that includes the following:

START /WAIT %logonserver%\netlogon\kix32.exe %logonserver%\netlogon\kixtart.kix
exit

This batch file calls kixtart.kix which is now displayed to the user. If anyone knows an easier way to do this, please let me know.

Top
#108266 - 2003-11-19 12:39 AM Re: Netlogon Command Shell Window
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

You can put those information into a string, which value will be displayed by the MessageBox function.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#108267 - 2003-11-19 12:47 AM Re: Netlogon Command Shell Window
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

In which windows version you are running it?
Are you trying also the statement

%logonserver%\netlogon\kix32.exe %logonserver%\netlogon\kixtart.kix to run?

We see which effect you are trying to get. Possible, that kixforms is a good extension of kixtart. Special
information about it you can find on the COM forum and the site www.kixforms.com
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#108268 - 2003-11-19 01:34 AM Re: Netlogon Command Shell Window
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Have youe set the RunLogonSync policy to enable the script to be visible? If not, check your GPO settings or search our FAQ.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#108269 - 2003-11-19 02:20 PM Re: Netlogon Command Shell Window
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Les is correct..

However, is there not a GPO that can do this as well?

Anyway - here is the post:
W2/XP - Keep the Window visible on login?

KiXtart FAQ & How to's

HTH,

Kent


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

Top
#108270 - 2003-11-19 02:34 PM Re: Netlogon Command Shell Window
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Kent,
Did I miss something?
Quote:

...RunLogonSync policy...check your GPO settings...



Actually, I did... it is RunLogonScriptSync
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.06 seconds in which 0.025 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