Editor's note: This article is the ninth part of a 12-part series about Active Directory Service Interfaces (ADSI). The series started in the January 1999 issue. Refer to previous installments for definitions and background information.
For the past 2 months, I've shown you how to use ADSI to manipulate persistent and dynamic objects such as services, shares, sessions, and resources. This month, I conclude the discussion of these types of objects by looking at the archetypal entries in this area: printer queues and print jobs. I'm going to show you how to
- Identify print queues in the Windows 2000 (Win2K) Active Directory (AD)
- Bind to a print queue and access its properties
- List the print jobs in a print queue and manipulate them
The scripts that I provide use the WinNT: provider. Thus, they work not only on Win2K systems but also on Windows NT systems. However, you need to adapt the code for two of the scripts. For more information about this adaptation, see the sidebar "How to Adapt IDPrintQueue.vbs and BindPrintQueue.vbs for NT Systems," page 10. . . .


Robert Farnes March 12, 2001