Powershell to Print PDFs

August 13, 2015

The below powershell script can be used to print out PDF files:

 

Start-Process -FilePath "I:\Litigation Support\Electronic Discovery\2d Circuit Decision re_ Electronic Reviews Following Seizure.pdf” –Verb Print -PassThru | %{sleep 10;$_} | kill
Start-Process -FilePath “I:\Litigation Support\Electronic Discovery\ACEDS 4 Corners of EDiscovery Pricing.pdf” –Verb Print -PassThru | %{sleep 10;$_} | kill
Start-Process -FilePath “I:\Litigation Support\Electronic Discovery\Alternate Forms of ESI.pdf” –Verb Print -PassThru | %{sleep 10;$_} | kill

 

The source of the script is this site:

http://gregcaporale.wordpress.com/2012/01/18/powershell-to-print-files-automatically/

 

 

It's necessary to  adjust the sleep seconds to a higher amount for long documents.

 

When making multiple copies set the printing prefences in Windows for x number of copies.  This will work faster than using multiple lines in powershell.

 

Please reload

Contact Me With Your Litigation Support Questions:

seankevinoshea@hotmail.com

  • Twitter Long Shadow

© 2015 by Sean O'Shea . Proudly created with Wix.com