Printer driver install script has now been Powershell-ified

Out of all the stuff I provide on my blog, oddly enough my .vbs Printdriver installation script has been downloaded the most (almost 2000 times, and yes I wish I would have gotten an dollar for each download :p )

So this week I took some time here and there to finally convert my .vbs script to Powershell as this seems to be the thing all the trendy geeks are doing nowadays.
It basically does the same stuff as the .vbs yet with a small twist: This script first installs all the drivers and then deletes all the printer connections 1 by 1.
For now, I decided to write the eventlog entry under the Application log and (mis)using the MsiInstaller Source tag.
I haven’t been to able to figure out if it is possible to let the script take the number of installed drivers and put this in the eventlog entry (contact me if you know)
As always, feedback to improve the script is welcome and please, please test the script in your test environment before using it in production, your mileage may vary, results from the past are no guarantee for the future etc etc. in other words: use it at your own risk!
If you agree, please visit the Virtualistic download section to download the script and enjoy…
**EDIT 19-08-2010 **
The script has been updated, it now writes the correct results to the Eventviewer. Thanks go out to my buddy Arne from ICT-Freak.nl!

If this post helped you out, help me out keeping this site alive and visit some of my sponsors on the left or right.. Thanks..!
Tags: Powershell, Script, automatic, Printdriver,  printer driver installation script, Terminal Server

Comments are closed.