Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
Base Code from Ravikanth.Chaganti
Dim WshShell, oExec Set wshShell = CreateObject("WScript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") Set objInputFile = objFSO.OpenTextFile("c:\scripts\computers.txt",1) Set objOutputFile = objFSO.OpenTextFile("C:\scripts\output.txt",8,True) Do until objInputFile.AtEndofStream strcomputer = objInputFile.ReadLine strCommand = "dsquery ou forestroot -name " & strComputer "-o dn" Set oExec = WShShell.Exec(strCommand) If (oExec.Status = 0) Then If (oExec.stdOut.ReadAll = "") Then objOutputFile.WriteLine(strComputer) End If End If Loop objInputFile.Close objOutputFile.Close
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.