You are correct that is the line. So what your saying is that i have to be logged in as an administrator for this code to work. Now is that an adminstrator on the network or the local computer.
'open the file system object
Set oFSO = CreateObject("Scripting.FileSystemObject")
'open the data file
Set oTextStream = oFSO.OpenTextFile("wslist.txt")
'make an array from the data file
RemotePC = Split(oTextStream.ReadAll, vbNewLine)
'close the data file
oTextStream.Close
For Each...
that is what i am looking for. i have one last question when i put in the code i could not get the file LogonLocationReport.txt to be created. The wslist was created but the logon location report was not. any suggestions?
Hi. I am new to this VBscript. Heres my problem. I have to enter the user name in and match it up with the computer that they are currently log on to. Also i need to find the IP address of that computer. i am not sure were to start i know how to find that information for the local computer...
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.