RE: Match IP Address List to Computer Objects



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.

.



Relevant Pages

  • Query Process not showing users when not Admin
    ... Firstly apologies if you've read this in similar newsgroups - I've got nowhere ... with it and perhaps someone in here won't have seen my query before... ... I'm writing a simple script that a user can run to show them how many ... As super it comes out like this: ...
    (microsoft.public.windows.server.security)
  • Re: HELP! Need AD Query for Last login
    ... query the DCs in the USA domain, how would I modify the script? ... I'm new to VB script and making this simple modification is beyond me at ... >> ' Because the lastLogon attribute is not replicated, ... Then, for each Domain Controller, ADO is used to search the ...
    (microsoft.public.scripting.vbscript)
  • Re: LDAP query information
    ... a "Dim" statement. ... script is run. ... Microsoft MVP Scripting and ADSI ... Can you please provide me info on what to do with the below query? ...
    (microsoft.public.windows.server.scripting)
  • Re: LDAP query information
    ... execution of the vbscript? ... The error message indicates the line number in the script, ... Dim strBase, strFilter, strAttributes, strQuery, adoRecordset ... ' Construct LDAP syntax query. ...
    (microsoft.public.windows.server.scripting)
  • Re: An application, script, or AD Saved query that ...
    ... It is a multi-step operation as you can't create a query that says give me all users who aren't in a mail enabled group. ... So the most efficient way I can visualize this is that your script will need to find all members of all mailenabled groups. ... This you will enumerate the members and stick them in a hash/dictionary/whatever it is called in the scripting language you use, basically you want an associative array. ...
    (microsoft.public.windows.server.active_directory)