Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

List computers mapped to a print queue

Posted on 2011-09-08
3
274 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 Malmstead
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Logon script fails 23 45
excel VBA - clear duplicates not working 11 36
Need to script to pull out the report from Active directory 14 34
Raising Forest Functional Level 9 30
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
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 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 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 …

790 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