Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
Print management commonly includes the scheduling of printer availability. For example, many organizations limit the hours during which print jobs can be printed. This is often done to prevent users from printing personal documents after the close of regular business hours. It also provides an opportunity for support personnel to perform routine maintenance without the fear of interrupting a submitted print job.
Alternatively, printer scheduling might be used to allow users to submit print jobs during business hours and have those print jobs automatically printed late at night, when the printing will not interfere with other documents.
For example, suppose a user routinely prints a 300-page document for use the next day. You can create a logical printer for that user and schedule the printer to print only between the hours of 2:00 A.M. and 6:00 A.M. The user sends the print job to this custom printer each time the document is printed. The job queues but does not begin printing until 2:00 A.M. Therefore, it does not monopolize the printer during regular working hours.
Printer availability can be configured by modifying the IADsPrintQueue properties StartTime and UntilTime.
Listing 13.17 contains a script that configures the availability of a printer. To carry out this task, the script must perform the following steps:
Listing 13.17 Configuring Printer Availability
|
|
Send us your feedback | « Previous | Next » |