Hi you can do it by the script below. This will ask you for a domain and a path and filename for the log
'System variables - dont change
Dim TempFile, computer, domain, DomainSub, inputfile, outputfile
Const HKEY_LOCAL_MACHINE = &H80000002
Const ForWriting = 2
Const ForReading = 1
Const ForAppending = 8
Const TristateFalse = 0
Set wshshell = CreateObject("WScript.Shell"

Set fso = CreateObject("Scripting.FileSystemObject"
Domain = inputbox ("Type Your Domain"

listdes = InputBox ("type destination for log"

if Domain = "" Then
MsgBox("Nothing Typed"

Else
Call GetDomain
Set infile = fs

penTextFile (listdes, ForReading, True) 'opens file for reading
Do While infile.AtEndOfStream <> True
If infile.AtEndOfStream <> True Then
strServername = Trim(infile.ReadLine)
End if
Loop
Sub GetDomain 'Gets a list of servers from the defined domain and writes to a file
Const TemporaryFolder = 2
Set TempFile = fs

penTextFile (listdes, ForWriting, True)
Set DomainObj = GetObject("WinNT://" & domain)
For Each Object In DomainObj
If Object.class = "Computer" then
'WScript.Echo(Object.name)
TempFile.Writeline(Object.name)
Else
End If
whyme = Wscript.Echo(Object.Name)
Next
End Sub
End If