Select Area:
| Total Projects Found: 20
  |  |
|
Arrays |
| |
KIX gives you the ability to use arrays within your scripts. However, unlike other variables in KIX, you can not use arrays exactly the same way. This script demonstrates how to create an array, assign data to the array, and access the data from the array.
|
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Create / Parse Text Files |
| |
KIX script showing how you can utilize windows commands to generate output text files, that KIX can parse and make decisions on. This example checks a floppy disk for bad sectors, and reports/acts upon positive results. This script utilizes the SHELL command, along with the OPEN and READLINE commands. This file also shows simple dynamic script writing.
|
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Database Binary Read / Write Demo |
| |
This script demonstrates storing and extracting binary data from a database using the ADO Stream object to access binary files from KiXtart. The script shows a simple file storage and extraction command line utility. |
| Author:
Dx21
|
Version
4.2x |
 |
 |
|
|
DOCSOpen - File Name to Document Number Conversion |
| |
This script is used to enumerate through a DOCSOpen Document file store and convert the Base 36 Enhanced or Base 32 UNIX file name into the documents actual document number and version. The output of the script file is to a CSV file. The script is set to assume that PPT and DOC use the Enhanced scheme whereas the XLS uses the UNIX - however, the script can be easily modified to reidentify conversion methodology for any file type. This script makes heavy use of new features within version 2001 - Including functions (some recursive), local and global variables, ActiveX components (utilizing the CreateObject function) and new syntax rules. |
| Author:
Dx21
|
Version
2001 |
 |
 |
|
|
Dynamic Scripts |
| |
This is a KIX script which dynamically writes a batch script file, customized for whatever environment the generic KIX script requires. In turn, this DOS batch script dynamically writes a text file fragment with unique information and merges it with static files to create a unique and customized MSBATCH.INF file. Download Includes all additional files required during run time - Instructions in code comments. |
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Emergency Repair Disk (ERD) |
| |
This script shows many examples of task automation. The purpose of this script is to create a current Emergency Recovery Disk image, and post it to a centralized network location, so you always have the latest version of the ERD for when/if your NT server goes down. This script shows how to perform many tasks, such as creating Event Viewer Log entries, text file log updates, shelled program requests, use/respond to environmental ERROR codes, plus use Kix functions. |
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Enumeration - Registry Example 1 |
| |
Kix script showing how to enumerate through a section of the registry, pulling out desired information and writing that information into an INI file. This example uses the Printers section of the registry to parse out installed printers, and their information. |
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Enumeration - Registry Example 2 |
| |
This version of the registry enumeration shows how you can enumerate through a section of the registry (we have selected the Run and RunServices section) and delete information based on what it extracts. Because Windows renumbers the index of registry keys dynamically, enumeration can be difficult if you delete entries, as the results are skipped entries as the registry key is reindexed. This script not only enumerates through a key, but cycles through the whole process so you can re-catch the newly indexed entries. |
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Enumeration - Registry Example 3 |
| |
This version of the registry enumeration shows how to delete all the values in a key, without deleting the Key itself. Although you can accomplish this the same way be just deleting the key and then recreating it, this example shows how to exploit the indexing scheme of the registry.
|
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Function Library - Re-usable Code Functions |
| |
This script shows how you can create a function library using KiXtart so that multiple scripts can use the same code.
The Download contains all files necessary to complete the example. |
| Author:
Dx21
|
Version
3.63 |
 |
 |
|
|
INI DataStores - using as a database for variables |
| |
This script shows how you can write a single Kix script, and have that script run in multiple locations using different information depending on where the script is run. This demonstration utilizes intrinsic functions to determine it's running location, and a small INI file which it calls to gather information about that location for use in it's flow. The Download contains all the files necessary to complete the demo. |
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Inventory Installed Software |
| |
Essentially free asset inventory is one of the benefits of knowing the WMI. Just check out any of the software products or companies which provide hardware and software inventory for administrators. The cost can quickly mount. This example script shows how to inventory all install software and Hot-Fixes installed on the local computer. The script starts by creating a virtual RecordSet, populating it with data from the computer, then creating a summary web page. The script can be easily adapted to use existing databases. One of the interesting things about the process of software inventory via WMI is that the class, Win32_Product, only inventories software installed with the Windows Installer. This is all well and good, but not all software is and if you want a complete inventory you will need those applications which don’t conform to Microsoft’s vision. There are ways to work around this problem, the most publicized way being the inclusion of the AddRemovePrograms class (adapted from SMS) into the repository. This works well but inclusion of this class on hundreds of workstations automatically isn’t necessarily easy. This script utilizes the registry functions of the WMI to enumerate the Uninstall key and collect the information which is not otherwise collected by the Win32_Product or Win32_QuickFixEngineering classes (for HotFixes). |
| Author:
Dx21
|
Version
4.21 |
 |
 |
|
|
Logon Script Example: Multiple OS Version Platforms |
| |
Here is a script which I use by customers. It has a LOT of functions... I hope that someone will look at it, and enjoy's it... [Dx21: Hightlights include use of the intrinsic @Macros for information gathering and decision making, Drive and port mappings, Windows Groups identification, shelling, platform identification and user communications.] |
|
|
PING Demo |
| |
This demo shows a function which can be used to determine if a computer is on-line and responding to ping requests by either using either WMI or the actual PING utility depending on the version of Windows the function is run on. |
| Author:
Dx21
|
Version
4.2x |
 |
 |
|
|
Printers - Remap both Server and Printer by Name |
| |
This script example was used to redirect client printer mappings when a print server was taken off the network, and all the printers on that print server were moved to a new server. This example enumerates throught the printers section of the registry, and remaps the installed printers to the new location if needed. The script can also rename the printers if the administrator has the printer naming following a convention on the network. These settings do require a client side reboot ?o take effect. Download contains all files needed to complete the demo. |
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Printers - Remap Server Only |
| |
This script is designed to enumerate all the installed printers on a Win 9x or NT workstation, evaluate the data defined for each installed printer's port, and if needed - update the data to repoint the installed printer to the new port. This script assumes that you have kept your printer objects titled the same, and that only the host server has changed (i.e., a printer at \\Server\MyPrinter is now \\NewServer\MyPrinter). This script has been sucessfully run on over 1000 computers. |
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
RAS Connections - Testing For |
| |
ou can test for the presence of a RAS connection and use the outcome to switch between scripts you run by using the code snippet. |
| Author:
Dx21
|
Version
3.63 / 2001 |
 |
 |
|
|
Recursive Functions |
| |
This script demonstrates how to write and use recursive functions within KiX. The script makes use of functions, new string manipulations and objects. |
| Author:
Dx21
|
Version
2001 |
 |
 |
|
|
Return Multiple Values from a UDF |
| |
One sever limitation of Kix is the inability to pass any parameter to a function (COM or User Defined Function (UDF)) By Reference (all parameters are passed By Value). One workaround is to use a global variable and reference that global variable from within the function. But because the variable is not passed as a parameter, it can sometime become confusing on very large scripts. The second workaround is to use an array. A local variable receives the array return of the UDF, and then each element is referenced. Unfortunately, this workaround is only good for UDFs. COM functions which require a variable passed as a parameter and which a return would be placed in this variable, fail regardless if the variable passed is global or not. |
| Author:
Dx21
|
Version
4.21 |
 |
 |
|
|
Spell Check Clipboard with Microsoft Word |
| |
This script will create an instance of Microsoft Word (if you have it installed) and will spell check the contents of the clipboard by presenting you with the standard spell check dialog Word presents users. Once you have completed the spell check, the clipboard text is updated with the corrected version and you can paste it back. |
| Author:
Dx21
|
Version
2001 |
 |
 |
|
|
|
This resouce is only available to account holders with an added subscription. Click here to learn more about accounts and subscribing to our site!
|