|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how could I get all the computer name in a group which are running?
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. James Pang wrote:
> how could I check if "i" is on ? Pinging the computers and see it they respond is an option.> > 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, 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 |
|||||||||||||||||||||||