PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms..win.server.scripting > Re: Need a script to capture computer names in IP range
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Need a script to capture computer names in IP range

Réponse
 
LinkBack Outils de la discussion
Vieux 20/11/2007, 20h57   #1
Jeffery Hicks [MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.


  Réponse avec citation
Vieux 21/11/2007, 04h47   #2
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.

>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h25.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10891 seconds with 10 queries