Years ago I stumbled onto KiXtart and have loved it ever since. Being a seasoned Novell guy I enjoyed the possibilities with Novell login scripts. When the Microsoft Server became stronger and stronger I realized my Novell dealings would diminish.
Anyone coming from the Novell world to the MS world soon learns that the MS logon batch files are very limited in what you can do at logon, enter Kixtart. From the KiXtart.org site... " KiXtart is a free-format scripting language and has rich built-in functionality for easy scripting. It supports COM (providing access to ADSI, ADO, WMI, etc) and thus is easily extensible. Since version 4.50 KiXtart comes with inbuild pre-tokenization system for faster loading and smaller scripts and providing some level of intellectual property protection through obfuscation.
In simpler terms it allows you to code simple logon scripts to meet practically any demand. KiXtart supports Windows 3.1 all the way to Windows Vista.
How you use it...down and dirty method.
- Download it from www.kixtart.org, expand the .zip file.
- Copy the files...kix32.exe, kx16.dll, kx32.dll, kx95.dll to the following folder on one of your domain controllers (windows system folder)\SYSVOL\DOMAIN\SCRIPTS. Copying the files here will cause them to replicate to the other domain controllers (if present).
- Create a logon batch file such as logonKiX.bat and assign it to a user.
- Edit the file to look something like this...(this file is for 32 bit Windows)
@echo on
kx32.exe logonKiX.kix
- Create a text file with a .kix extension such as logonKiX.kix
- Edit the file to contain your commands, a simple one is as follows...; indicate a comment and are ignored.
; check a group membership and if present map a drive
if ingroup("Domain Admins")
use i: "\\ad01\technology$" /PERSISTENT
endif
; map some drives
use f: "\\ms02\apps$"
use v: "\\ad01\district$" /PERSISTENT
; Set the local workstation time to the domain time
run "net time \\dc01 /SET /Y"
; Make sure group policy is current
run "gpupdate /force"
What happens then. At logon the domain controller runs the .bat file you created for the user. The .bat file calls the kix32.exe script application which executes the script. There are several variables that can be added to the kix32.exe command to add to the script execution.
This is a very simple script that is just a start, try it out it works wonderfully. The possibilities are maybe limitless.
Visit the KiXtart site for a full manual, examples, forum, and more.
www.KiXtart.org