Question

Asked:
Asked By:
Jun 30 2008   2:05 PM GMT
WinComputingATE   260 pts.

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


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?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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

[command] > sample.txt

Does this help?
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Microsoft Windows and Development.

Looking for relevant Microsoft Windows Whitepapers? Visit the SearchEnterpriseDesktop.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register