Skip navigation

KIX Script for Printing

Downloads
20028.zip

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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish