Brian Madden Logo
Your independent source for application and desktop virtualization.
Marketplace

advertisement
Brian Madden's Blog

Free script parses event logs and compiles client printer autocreation errors

Written on Dec 05 2006 15,004 views, 10 comments


by Brian Madden

Everyone knows that one of the challenges of Citrix Presentation Server is that autocreated client printers sometimes don't autocreate. When this happens (or doesn't happen?), the most likely cause is a printer driver mismatch between the client and the server. Whenever the Presentation Server tries but fails to autocreate an ICA client printer, it writes an event to the Application Event Log.

Robert Iutzwig has created this straightforward script that connects to your servers one-by-one and scans their application logs searching for 1103, 1104, 1106, and 1107 printer management errors. It then outputs this list of printer drivers to a text file. It also creates a second text file that lists each of the errors encountered on each server so you can see which drivers are causing the most problems.

To use it, you'll find two files in the attached ZIP archive. First you need to edit servers.txt so that it contains a list of all the servers you want to check. Then simply run CPS4ELCrawler.vbs with admin rights from one of your servers.

This script was built for Windows Server 2003 and Citrix Presentation Server 4 environments.


PrintLogCrawler.zip


Comments

cory feign wrote Thanks!
on 12-05-2006 9:34 AM
This is helpful!
hans straat wrote nice script
on 12-06-2006 8:00 AM
A very nice script indeed. looks a bit like the application that Douglas Brown created but way less advanced :)
I will crosspost it on datacrash.
SE wrote Does it work with W2K?
on 12-06-2006 2:55 PM
I see it's designed for W2K3 but has anyone tested it with W2K servers?
hans straat wrote RE: Does it work with W2K?
on 12-07-2006 3:36 AM
I think it will work on windows 2000 environment simply because the script browses your security logs and reports the events back in a txt file. This works the same on 2000 as on 2003.
David wrote RE: Does it work with W2K?
on 02-12-2007 1:20 AM
I have not been able to get the script to run on 2k box.

what is the correct syntax used in server.txt file ?

I have tried \\servername and just servername


no joy! just outputs blank evtlogquery.txt & evtlogqueryfinal.txt

The user account I am using can manually access each event viewer on the citrix servers and has permissions to the "Application" event..



ORIGINAL: mutsje

I think it will work on windows 2000 environment simply because the script browses your security logs and reports the events back in a txt file. This works the same on 2000 as on 2003.
David wrote RE: Does it work with W2K?
on 02-12-2007 6:24 AM
Well I tested this fine on 2k3 boxes, all the win2k boxes failed.
 
Keith Morgan wrote Understanding Output
on 03-13-2007 1:29 PM
Thanks for the script.  I am a little unsure about the content of evtlogqueryfinal.txt.  When I look at it therer are two sections of printers.  The first is about 104 printers and the second is about 500 lines.  Is the first section the ones that are showing up most often and the second is just the total?
 
 
Thanks for the help,
 
Keith Morgan
Robert Iutzwig wrote RE: Understanding Output
on 04-11-2007 7:45 AM
Evtlogquery.txt lists every 1103, 1104, 1106, and 1107 event log entry encountered for each server specified in servers.txt.  Evtlogqueryfinal.txt is a summary of Evtlogquery.txt (listing only unique printers that did not autocreate properly for each server specified in servers.txt).
Robert Iutzwig wrote RE: Does it work with W2K?
on 04-11-2007 7:49 AM
It was not written for Windows 2000.  It was written specifically for Windows 2003 and Citrix Presentation Server 4.
Guest wrote is the Printlog Crawler Download available
on 04-21-2007 4:24 PM

I have a download not found  

Thanks for the help

Xavier

 

(Note: You must be logged in to post a comment.)