I am currently working on a VBScript that will tell me what computer names in Active Directory have been inactive for 4 weeks. I need to write this information into a text file so that the names can be verified or deleted from the text file. The next module of the script will delete those approved computer names from Active Directory.
I’m having trouble writing the output of a CmdLine entry for the dsquery utility. I have written plenty of text files with known information, one line at a time but never written one that writes unknown output. What kind of help can you provide or which direction do I need to turn to?