Home All Groups Group Topic Archive Search About

how could I get all the computer name in a group which are running?



Author
9 Aug 2005 3:33 AM
James Pang
how could I check if "i" is on ?

Set objGroup = GetObject("LDAP://cn=GroupName,ou=Groups,dc=domain,dc?com")
mem = objGroup.member
For i = LBound(mem) to UBound(mem)
  Wscript.echo mem(i)
Next


--
Tech Servant James Pang.

Author
9 Aug 2005 1:03 PM
Torgeir Bakken (MVP)
James Pang wrote:

> how could I check if "i" is on ?
>
> Set objGroup = GetObject("LDAP://cn=GroupName,ou=Groups,dc=domain,dc?com")
> mem = objGroup.member
> For i = LBound(mem) to UBound(mem)
>   Wscript.echo mem(i)
> Next
>
>
Hi,

Pinging the computers and see it they respond is an option.

For this, you could use the IsConnectible function found here:
http://groups.google.co.uk/group/microsoft.public.scripting.vbscript/msg/0e17fd9e8ee66b35?dmode=source&hl=en



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

AddThis Social Bookmark Button