Solved

List computers mapped to a print queue

Posted on 2011-09-08
3
269 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
ID: 36510773
""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
ID: 36538168
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
ID: 36558786
No other solution was presented to my question.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

920 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

14 Experts available now in Live!

Get 1:1 Help Now