Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Need a script to capture computer names in IP range

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 20-11-2007
Rick Neely
 
Posts: n/a
Need a script to capture computer names in IP range

I am needing a script that will scan an IP range on our network and create an
Excel spreadsheet with a list of computernames. This will allow me to create
other scripts for our specific group and not the entire domain.

Reply With Quote
  #2  
Old 20-11-2007
Member
 
Join Date: Nov 2007
Posts: 5
theres a program out called angry IP scanner that does the same thing basiclly and you can save it as a .xls file. its called angry IP scanner i used it before, i know its not a script but hopfully you get what you are looking for.
Reply With Quote
  #3  
Old 21-11-2007
Jeffery Hicks [MVP]
 
Posts: n/a
Re: Need a script to capture computer names in IP range

I wouldn't bother with a script. I'd simply use any of the many free network
scanner tools. Grab one that allows you to export results to a file.
Otherwise you'll have to use command line tools like NBTSTAT or NSLOOKUP and
do a lot of parsing.
For example, nbtstat -A ipaddress should show you the computer name, among
other information. If you have reverse lookup zones you could also call
nslookup and parse that output.

This is probably do-able in PowerShell as well, and maybe a little bit
easier if you're ready to go down that road.

--
Jeffery Hicks
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org

Now Available: WSH and VBScript Core: TFM
Coming Soon: Windows PowerShell: TFM 2nd Ed.

"Rick Neely" <Rick Neely@discussions.microsoft.com> wrote in message
news:20B54905-E919-4A83-BE91-BBBA96BB77DE@microsoft.com...
>I am needing a script that will scan an IP range on our network and create
>an
> Excel spreadsheet with a list of computernames. This will allow me to
> create
> other scripts for our specific group and not the entire domain.


Reply With Quote
  #4  
Old 21-11-2007
Al Dunbar
 
Posts: n/a
Re: Need a script to capture computer names in IP range

Alternately, if you just need to get a list of computers available for
remote scripting, and if you have a naming convention that is OU or
subnet-specific, you could filter the output from the "NET VIEW" command.

/Al

"Jeffery Hicks [MVP]" <jhicks@sapien.com> wrote in message
news:B32E3A69-1A73-4921-9FE0-944223A4725C@microsoft.com...
>I wouldn't bother with a script. I'd simply use any of the many free
>network scanner tools. Grab one that allows you to export results to a
>file. Otherwise you'll have to use command line tools like NBTSTAT or
>NSLOOKUP and do a lot of parsing.
> For example, nbtstat -A ipaddress should show you the computer name, among
> other information. If you have reverse lookup zones you could also call
> nslookup and parse that output.
>
> This is probably do-able in PowerShell as well, and maybe a little bit
> easier if you're ready to go down that road.
>
> --
> Jeffery Hicks
> Microsoft PowerShell MVP
> http://www.scriptinganswers.com
> http://www.powershellcommunity.org
>
> Now Available: WSH and VBScript Core: TFM
> Coming Soon: Windows PowerShell: TFM 2nd Ed.
>
> "Rick Neely" <Rick Neely@discussions.microsoft.com> wrote in message
> news:20B54905-E919-4A83-BE91-BBBA96BB77DE@microsoft.com...
>>I am needing a script that will scan an IP range on our network and create
>>an
>> Excel spreadsheet with a list of computernames. This will allow me to
>> create
>> other scripts for our specific group and not the entire domain.

>



Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Need a script to capture computer names in IP range"
Thread Thread Starter Forum Replies Last Post
How to capture video from a Panasonic mini DV to my computer? Omar Windows XP Support 4 26-12-2011 01:58 AM
Best headphones for computer in range of Rs 500 to 800 Ulupy Hardware Peripherals 7 06-09-2011 07:37 AM
How to capture the password for Backtrack Linux using vb script MACALL Windows Software 5 06-07-2011 07:37 PM
Windows 7 Sysprep manually entering computer names Strangers Operating Systems 6 12-08-2010 10:17 PM
Script to find host names from list of IPs Azad Windows Server Help 8 26-03-2008 03:41 PM


All times are GMT +5.5. The time now is 06:06 PM.