Article ID: 201033 - Last Review: October 9, 2006 - Revision: 4.1 How To Access ADSI PrintJob, Session, and Resource Objects
This article was previously published under Q201033 SUMMARY
ADSI PrintJob, session, and resource objects are dynamic and are not in any ADs container. You enumerate and access them through collections exposed by other ADs objects. You cannot access dynamic objects using GetObject with an ADsPath.
MORE INFORMATION
PrintJobs are enumerated through the IADsPrintQueueOperations object's PrintJobs collection. You can get a reference to an IADsPrintQueueOperations by calling GetObject with an ADsPath that names a printer.
Sessions and resources are enumerated through the IADsFileServiceOperations object's Sessions and Resources collections. You can get a reference to an IADsFileServiceOperations object by calling GetObject with an ADsPath that specifies the LanManServer service of a computer. The following code illustrates how to enumerate and access these dynamic objects. Note that each enumeration of the collection gives a new set of object references that reflect the current state of the collections. REFERENCES
For additional information, please see the following
Web site: http://technet.microsoft.com/en-us/windowsserver/2000/bb735362.aspx
(http://technet.microsoft.com/en-us/windowsserver/2000/bb735362.aspx)
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
