Solved

List computers mapped to a print queue

Posted on 2011-09-08
3
266 Views
Last Modified: 2012-05-12
I need some help with writing a VB Script that can query the Active Directory to find out what computers are mapped to a specific print share. I know how to query the Active Directory to find what print share is mapped to a computer, or how to map a new print share to a computer in Active Directory, but I can't figure out or find any instruction on how to reverse the query.
For example: What computer, or computers, are mapped to \\servername\printshare01?

Things to consider:
- I am using Active Directory to map the print shares to the computers.
- When users login to the Domain, the login script will map the print share to the computer based on the information saved in Active Directory.

Any help will be much appreciated.

Gilberto
0
Comment
Question by:giloliveira
  • 2
3 Comments
 
LVL 25

Expert Comment

by:Ron M
Comment Utility
""When users login to the Domain, the login script will map the print share to the computer based on the information saved in Active Directory.""

Can you post the script?

I think the most logical way to do this would be to use the same code that maps the printer, to produce of a list of computers it is mapping for.
0
 

Accepted Solution

by:
giloliveira earned 0 total points
Comment Utility
I was able to create a script with a different logic. This scrip checks for all the computer accounts in a specif OU, and query every account for the what print share account is mapped to. If the result matches with the print share I am looking for, it will log the computer account to a log file. At the end, I have a list of all computers mapped to the specif print share I am looking for.
0
 

Author Closing Comment

by:giloliveira
Comment Utility
No other solution was presented to my question.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now