ThinWorld Citrix Knowledgebase

Thursday, 13 August 2009

HTA Map Network Printer

I wrote this HTA to aid users in mapping printers. Its a simple HTA that prompts the user for the name of the printer they want to add, and also allows them to set it as default.
The benefit of this method is its alot simpler than the ADD Printer wizard and also users dont have to worry about knowing what printer server the printer is on.

The script currently will only add the printer from 1 hard coded printer server, but i will be updating it to search for the printer across a pool of printer servers in a update im writing. This will also then be able to validate the printer the user enters to ensure it is valid.

I also added a Remember this printer button. The code does not make use of this as yet. This is again for a later release. I was intending to write out the users personal added printers to %homedrive%\printers.txt I was thinking of getting the logon script to map any printers found in this file. This would mean users get to keep their printers in the event of profile delete and we could also manage these user files in the event of the printer server changing or the queue being removed. This is a better solution than the current situation of users mapping printers inside their profiles which can be easily deleted and is not easily centrally managed.

Labels:

0 Comments:

Post a Comment



<< Home