Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

December 01, 1997 12:00 AM

KiXtart Logon Scripts

Windows IT Pro
InstantDoc ID #3388
Rating: (0)

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.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    8 years ago
    Dec 10, 2004

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

  • Luna Gashi
    9 years ago
    Nov 17, 2003

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

  • strijk 2
    9 years ago
    Nov 14, 2003

    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.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.