Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
Printer location tracking requires printer locations to reflect the actual physical location of the printer in question. If a printer moves from one building to another, the location attribute must be changed to reflect this move. If the naming scheme is changed, printer locations must be changed accordingly. If a building is renamed, printer locations must, again, be modified to reflect the change.
You can modify printer locations by binding to the printer object in Active Directory and then changing the Location attribute. This is useful if you need to change the location for an entire group of printers, such as all the printers in the Finance organizational unit.
You can use printer location configuration in several ways:
Listing 13.18 contains a script that configures printer locations. To carry out this task, the script must perform the following steps:
This prevents you from inadvertently changing the location for a computer or a user account.
Listing 13.18 Configuring Printer Locations
|
|
If you are configuring the location of a single printer only, there is no need to write a script; it is probably faster and easier to make this change using the graphical user interface. In other cases, however, you might need to make a similar change to a large number of printers. In those situations, a script will prove faster and more efficient.
For example, suppose your initial naming scheme includes only the building number and the floor number (such as Building 37/Floor 2). As your organization expands, a branch office might be opened in a new city. In that case, you should modify your naming scheme to reflect the fact that different buildings are in different cities.
Listing 13.19 contains a script that updates printer locations. To carry out this task, the script must perform the following steps:
This prevents you from inadvertently changing the location for a computer or user account.
Listing 13.19 Updating Printer Locations
|
|
Send us your feedback | « Previous | Next » |