Hello everyone I am trying to direct the output of this script to a file , it is currently going to the screen any help would be greatly appreciated. Thank You!!
Option Explicit
' Declare variables
Dim sDomain
Dim oDomain
Dim oComputer
' This string specifies the domain (change to suit your needs)
sDomain = "LDAP://cn=Computers,dc=testone,dc=local"
' Open the domain specified by sDomain
Set oDomain = GetObject(sDomain)
' Iterate through each computer in the domain
For Each oComputer In oDomain
' Display name and GUID text on the screen
WScript.Echo oComputer.Name & vbTab & oComputer.GUID
Next
Option Explicit
' Declare variables
Dim sDomain
Dim oDomain
Dim oComputer
' This string specifies the domain (change to suit your needs)
sDomain = "LDAP://cn=Computers,dc=testone,dc=local"
' Open the domain specified by sDomain
Set oDomain = GetObject(sDomain)
' Iterate through each computer in the domain
For Each oComputer In oDomain
' Display name and GUID text on the screen
WScript.Echo oComputer.Name & vbTab & oComputer.GUID
Next