Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


December 1997

KiXtart Logon Scripts


RSS
Subscribe to Windows IT Pro | See More Systems Administration Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Profiles, Policies, and Logon Scripts

KiXtart, a freeware scripting language, gives you much of the power possible with custom executables. KiXtart scripts make many of the features you want in your logon scripts possible. KiXtart is available from many Web sites. Pick your favorite Web-based search engine and search for KiXtart to find sites such as the KiXtart Archive at http://netnet.net/~swilson/kix/nfKiX.htm. Several KiXtart Internet sites have not only the KiXtart program but also sample scripts. As of July 23, version 3.38 was the most recent.

Once you've unzipped KiXtart, you'll find numerous files, including Kix32.doc, a users guide. The crucial files are Kix32.exe, Kx32.dll, and Kx16.dll. You must copy these three files to the Netlogon share on all your Domain Controllers that authenticate logons. With this groundwork in place, you're ready to write a KiXtart script and tell NT to use it.

Investigating a Script
You can leverage KiXtart in many ways. Our sample KiXtart script in Listing 1 displays corporate information, sets client machine time, and maps drive letters. This script has been regression tested on both NT Workstation 4.0 and Win95 Ver A. We'll refer to this script by section number as we explain what each component does:

  • Section 1. Although this section is optional, anyone who has written code knows the importance of a good header. Contact information for the author and creation date are crucial parts of this section.

  • Section 2. Section 2 is where the action starts. For fun, we've displayed a tree bitmap and the company name. (We have fictitiously assumed this script is for a forestry service.)

  • Section 3. A neat feature of NetWare logon scripts is the ability to display a greeting based on the time of day. Section 3 shows the KiXtart version.

  • Section 4. A crucial part of any environment is synchronized time. One idea that works well is to pick a server to set all clients' machine time. We refer to this server as the Keystone timeserver. To ensure the Keystone server has the correct time, install the time service from the NT Server resource kit. By default, a plain user does not have the right to change the time on an NT workstation. To enable users to change the time, give them the right Change the system time.

  • Section 5. The last part of the script maps drive letters to network resources. Section 5 shows this function.

The Big Picture
After you've written the script, you must save it. Your logon script needs to be in the Netlogon share on all your domain controllers that validate logons. If you have directory replication established, you can save the script to your export server and it will be distributed automatically. If you are not using directory replication, you must copy the script to each domain controller manually.

Next, you have to instruct NT to use this script when a user logs on. You define a logon script for a user through User Manager for Domains. The Logon Script Name: field appears when you select the profile button under a user's property sheet. The quickest and easiest method for calling the KiXtart script is to specify KIX32.exe as the logon script name. This method works only if you name your script KiXtart.scr. An optional method is available if you do not want to name your script KiXtart.scr. You must create a batch file that contains the following line:

Kix32.exe "Name of KiXtart Script"

Note that you must substitute the name of your script. If you name your script Test.scr, the contents of the batch file are

Kix32.exe Test.scr

Instead of filling in KIX32.exe for the logon script name, you now use the name of the batch file.

Further Information
Additional commands are documented in Kix32.doc. Because KiXtart is freeware, many people are willing to share their knowledge and scripts. You can download these scripts from the Web.

End of Article



Reader Comments
I have used this in NT4, but i can't get the scrip to load with a Win2K domain controller.
I have set the logon script in the user profile and added a policy to load the script on logon, neither of which worked
if i execute the script by hand (be it a direct invocationor a batch file) it loads perfectly.

Within the profile i have tried script kix32.exe argument logon.kix, kix32.exe logon.kix, logon.bat (which mounts netlogon, executes the script, then unmounts it) and full UNC path (\\servername\netlogon\logon.bat), neither of which worked.

I have even enabled synchronised logon scripts.

strijk 2 November 14, 2003


I want to learn more about the scripts and I am so greatful for having the possibility to learn that of nice people

Luna Gashi November 17, 2003


There is a great KiXtart online reference here: http://www.dx21.com/SCRIPTING/KIXTART/INDEX.ASP

Anonymous User December 10, 2004


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Configuration Manager SP1 and R2 Overview

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement