Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Const filInputName = "Servers.txt"
Const filOutputName = "Service Info.csv"
Dim objDomain, fso, filInput, filOutput, strComputer, objComputer, objService
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
Set filInput = fso.OpenTextFile(filInputName)
Set filOutput = fso.CreateTextFile(filOutputName)
filOutput.WriteLine "Server,Service,Service Account"
Do Until filInput.AtEndOfStream
strComputer = filInput.ReadLine
Set objComputer = GetObject("WinNT://" & strComputer)
objComputer.Filter = Array("Service")
For Each objService in objComputer
filOutput.WriteLine strComputer & "," & objService.DisplayName & "," & objService.ServiceAccountName
Next
filOutput.WriteLine
Loop
MsgBox "All computers specified in the " & filInputName & " file have been scanned.", vbInformation, "Execution Completed"
Set objDomain = Nothing
Set fso = Nothing
Set filInput = Nothing
Set objComputer = Nothing
Set objService = Nothing