Changing the Spooler directory
During the printing process, the Windows printer spooler in Windows uses an on-disk folder to hold the temporary files the printing process creates. If multiple users each print large documents to a single printer, the print queue, and the temporary folder can get quite large. By default, this folder is C:\Windows\System32\spool\PRINTERS
. You may wish to change the default spool folder on a separate physical storage device for a busy print server with multiple printers. Also, consider ensuring the volume is fail-safe (e.g., using hardware or software RAID).
Getting ready
Before running this recipe, you must set up the PSRV
printer server (you did this in the Installing and sharing printers recipe). Additionally, you need SalesPrinter1
created.
How to do it...
- Loading the
System.Printing
namespace and classes
Add-Type -AssemblyName System.Printing
- Defining the required permissions
$Permissions =
[System.Printing.PrintSystemDesiredAccess...