Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
Most of the IADsPrintQueue properties can be configured by using ADSI. These configurable properties provide a way for you to dynamically change your printing infrastructure as needed. For example, you can assign a higher priority to a particular printer, thereby ensuring that documents sent to that printer are printed first. Alternatively, you might want to share a printer over the network or use a script to modify the location or the availability of a printer.
Listing 13.16 contains a script that configures the priority of a printer. To carry out this task, the script must perform the following steps:
Listing 13.16 Configuring Printer Priority
|
|
Note that changing the priority of a printer is meaningless unless multiple logical printers are targeted to the same physical printer. For example, you might have a single physical printer that has two logical printers configured as follows:
In this case, any documents sent to Printer A print before documents sent to Printer B. Why? Because Printer A has a higher priority. If the physical printer has only one logical printer, documents will print in the order in which they are submitted, regardless of the priority assigned to the printer. This is because all print jobs will have the same priority.
Send us your feedback | « Previous | Next » |