Hi, thanks for your reply. I modified the code as you suggested and corrected my spelling mistakes ^_^ it now looks like this
Option Explicit
Dim oFSO, oFile, arrServer, strServer, objWMIService, sCol
Const ForReading = 1
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile =...
The server names separated by comma. Simple names not FQDN. The first part works by itself but there appears that there is something wrong with the second at least that is where I get an error - expected ")" where I don't see how it should be there.
Hello
I'm relatively new to scripting and trying to find out if a service exists on a number of Servers but I'm stuck and can't figure out why the following code is not working
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile = oFSO.OpenTextFile("c:\test\Servernames.txt", 1)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.