v-jpzhu
Fri Mar 28 04:40:44 PDT 2008
Hello
Thanks for your post as well as to Ziad for the information sharing.
According to your description, my understanding is that you'd like to find
a solution to match all the computer accounts in AD with their IP
addresses. You don't use Windows DNS Server in your domain and DNS reverse
lookup could not be a solution. If there is any misunderstanding, please
let me know.
Analysis and Suggestions:
===================
As DNS reverse lookup would not work, I think the best solution now is to
use NetBIOS name resolution to achieve your requirement.
I am wondering whether you have a WINS Server in your domain?
If yes, you could just collect the data you want from the database on WINS
Server.
If not, you have to query the host name of each IP address in each LAN. If
the computer is turned off when the query is performed, you will not be
able to get its NetBIOS name. You could use 'ping -a IP address' command to
resolve IP address to hostname. Moreover, as the query is based on
broadcast packets, you have to do the query of all IP addresses in all of
your Network.
I also agree with Ziad that you could code a script and run the script to
loop over all IPs and get their corresponding computer names.
The following Script Repository website contains good samples which might
be helpful to you:
Script Repository>Client-Side Printing
http://www.microsoft.com/technet/scriptcenter/scripts/printing/default.mspx?
mfr=true
Please also note that the newsgroups are provided for specific break/fix
issues. For assistance with this coding/development issue, please consider
these resources:
1. MSDN newsgroups
http://msdn.microsoft.com/newsgroups/default.asp
2. Public newsgroups for peer experiences and recommendations:
microsoft.public.windows.server.scripting
http://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-us/defaul
t.mspx?dg=microsoft.public.scripting.vbscript
I hope this helps. Thanks.
Sincerely,
Neo Zhu,
Microsoft Online Support
Microsoft Global Technical Support Center
Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.