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.