Dim oShell
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colComputers = objWMIService.ExecQuery("Select * from Win32_ComputerSystem")
Set oShell =CreateObject ("WSCript.shell")
For Each objComputer in colComputers
oShell.Echo objComputer.Name
Next
Set oShell = Nothing