Printer mapping script

copy setprinters.kix and printers.ini into your netlogon share

download kix.exe from kixtart.org and copy it into your netlogon share too (or to another user readable share)

Edit the GPO for your users and add the following:

User Config -> Windows Settings -> Scripts -> Logon Script

Click Add
Script Name:
\\yourdomain\netlogon\kix32.exe (change path as appropriate if running from another share)
Parameters:
\\yourdomain\netlogon\setprinters.kix /f


Debugging can be activated by creating a file called printers.debug in the root of the C: drive. Ensure this file is writable by all users.


The ini file contains comments as to it's structure. Lines beginning with a semi-colon ; are comments and are ignored.

The script will read the [sections] in the ini file and attempt to match them to the PCs group membership, it's OU, or will check whether the PC's name contains the text in the square brackets. If a match is found, all printers listed in that section are added. NB it is perfectly possible to match more than one section.

Whether the match is made on Group membership, OU, or name is set in the script. Please see comments for details.


Chad Gray
chadsarcade at gmail dot com
