KIX Script for Printing

Learn about a KIX script that checks for group membership and then sets an appropriate printer.

Readers

March 18, 2001

1 Min Read
ITPro Today logo


We had to move more than 400 users to a new location that had a completely new infrastructure. Adding printers was a big hassle. I wrote a KIX script, which Listing 1 shows, that checks for group membership, then sets the appropriate printer. This script includes a level of error-checking: If the script successfully adds the printer, it displays an onscreen message that contains the userid variable and says the process was successful. If the script doesn't add a printer, the script presents an error message that asks the user to contact the Help desk and sets up a default printer.

—Vijay Luthra
[email protected]

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like