Having trouble writing the output of a CmdLine entry for the dsquery utility

pts.
Tags:
Active Directory
VBScript
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

In a DOS prompt situation or with batch files I like to use this:

[command] > sample.txt

Does this help?

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following