Link to home
Start Free TrialLog in
Avatar of giloliveira
giloliveiraFlag for United States of America

asked on

List computers mapped to a print queue

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
Avatar of Ron Malmstead
Ron Malmstead
Flag of United States of America image

""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.
ASKER CERTIFIED SOLUTION
Avatar of giloliveira
giloliveira
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of giloliveira

ASKER

No other solution was presented to my question.