Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Need a script to find the systems in AD or not?

HTVi
TV Discussion Newsgroups

Need a script to find the systems in AD or not?
RANG 5/7/2007 6:58:00 AM
Hi,

I need a script to find the list of systems will be available in AD or not?

Anybody can help??
Re: Need a script to find the systems in AD or not?
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 5/7/2007 12:32:59 PM

"RANG" <RANG[ at ]discussions.microsoft.com> wrote in message
news:3152DE27-CABB-4DE4-A4C6-2A9D841D270F[ at ]microsoft.com...
[Quoted Text]
> Hi,
>
> I need a script to find the list of systems will be available in AD or
> not?

the command 'NET VIEW' will display a list of all computers that have been
up for at least fifteen minutes. to get a list of all computers in AD, the
simplest method would be to use CSVDE.exe.

What, exactly, do you mean by "available in AD"?


/Al


Re: Need a script to find the systems in AD or not?
RANG 5/8/2007 4:55:02 AM
Thanks Al Dunbar.

I will try to create a script using ur command. My Exact requirement is I
had list of hostnames in my notepad file. I want to check those hostnames
availability in AD. Is it possible to get a report with all the host name and
their presence details (yes/no) in Excel format.

Somewhere i saw these kind of script. Now i need that. can u help for this??

"Al Dunbar" wrote:

[Quoted Text]
>
> "RANG" <RANG[ at ]discussions.microsoft.com> wrote in message
> news:3152DE27-CABB-4DE4-A4C6-2A9D841D270F[ at ]microsoft.com...
> > Hi,
> >
> > I need a script to find the list of systems will be available in AD or
> > not?
>
> the command 'NET VIEW' will display a list of all computers that have been
> up for at least fifteen minutes. to get a list of all computers in AD, the
> simplest method would be to use CSVDE.exe.
>
> What, exactly, do you mean by "available in AD"?
>
>
> /Al
>
>
>
Re: Need a script to find the systems in AD or not?
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 5/9/2007 2:07:38 AM
I think net view will show you all computers connected and authenticated to
the domain (even if no one is logged on), and thus available. csvde can
reveal all computers in the domain, whether online or not.

You could write a script to read the computer names from your text file and
then attempt to ping each and report on the results.

Or, I have an example VBScript program that queries AD for all computer
objects, then pings each to see if they are available. If they are available
the program connects and retrieves some information. All is logged to an
Excel spreadsheet. The program is linked here:

http://www.rlmueller.net/Inventory.htm

You can use the program as is, or modify for your needs. It could be
modified to read computer names from a text file using the FileSystemObject.
This should get you started.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--

"RANG" <RANG[ at ]discussions.microsoft.com> wrote in message
news:11BD5D72-4B9F-4DC6-8F88-40D3E67F568B[ at ]microsoft.com...
[Quoted Text]
> Thanks Al Dunbar.
>
> I will try to create a script using ur command. My Exact requirement is I
> had list of hostnames in my notepad file. I want to check those hostnames
> availability in AD. Is it possible to get a report with all the host name
> and
> their presence details (yes/no) in Excel format.
>
> Somewhere i saw these kind of script. Now i need that. can u help for
> this??
>
> "Al Dunbar" wrote:
>
>>
>> "RANG" <RANG[ at ]discussions.microsoft.com> wrote in message
>> news:3152DE27-CABB-4DE4-A4C6-2A9D841D270F[ at ]microsoft.com...
>> > Hi,
>> >
>> > I need a script to find the list of systems will be available in AD or
>> > not?
>>
>> the command 'NET VIEW' will display a list of all computers that have
>> been
>> up for at least fifteen minutes. to get a list of all computers in AD,
>> the
>> simplest method would be to use CSVDE.exe.
>>
>> What, exactly, do you mean by "available in AD"?
>>
>>
>> /Al
>>
>>
>>


Re: Need a script to find the systems in AD or not?
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 5/10/2007 2:42:56 AM
I am not sure what the OP means by checking the hostnames "availability in
AD". accessible on the network is one thing (and perhaps the most obvious),
but it could simply mean that he has a list of names, and wants to find out
which correspond to existing computer objects in AD and which do not.

/Al

"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> wrote in
message news:uYDxT7dkHHA.3264[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
>I think net view will show you all computers connected and authenticated to
>the domain (even if no one is logged on), and thus available. csvde can
>reveal all computers in the domain, whether online or not.
>
> You could write a script to read the computer names from your text file
> and then attempt to ping each and report on the results.
>
> Or, I have an example VBScript program that queries AD for all computer
> objects, then pings each to see if they are available. If they are
> available the program connects and retrieves some information. All is
> logged to an Excel spreadsheet. The program is linked here:
>
> http://www.rlmueller.net/Inventory.htm
>
> You can use the program as is, or modify for your needs. It could be
> modified to read computer names from a text file using the
> FileSystemObject. This should get you started.
>
> --
> Richard Mueller
> Microsoft MVP Scripting and ADSI
> Hilltop Lab - http://www.rlmueller.net
> --
>
> "RANG" <RANG[ at ]discussions.microsoft.com> wrote in message
> news:11BD5D72-4B9F-4DC6-8F88-40D3E67F568B[ at ]microsoft.com...
>> Thanks Al Dunbar.
>>
>> I will try to create a script using ur command. My Exact requirement is I
>> had list of hostnames in my notepad file. I want to check those hostnames
>> availability in AD. Is it possible to get a report with all the host name
>> and
>> their presence details (yes/no) in Excel format.
>>
>> Somewhere i saw these kind of script. Now i need that. can u help for
>> this??
>>
>> "Al Dunbar" wrote:
>>
>>>
>>> "RANG" <RANG[ at ]discussions.microsoft.com> wrote in message
>>> news:3152DE27-CABB-4DE4-A4C6-2A9D841D270F[ at ]microsoft.com...
>>> > Hi,
>>> >
>>> > I need a script to find the list of systems will be available in AD or
>>> > not?
>>>
>>> the command 'NET VIEW' will display a list of all computers that have
>>> been
>>> up for at least fifteen minutes. to get a list of all computers in AD,
>>> the
>>> simplest method would be to use CSVDE.exe.
>>>
>>> What, exactly, do you mean by "available in AD"?
>>>
>>>
>>> /Al
>>>
>>>
>>>
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen