IT:AD:CommandLine:HowTo:Record the Output

Process

Capture output:

 
  //Pipe results to a file.
  sc query > results.txt
  //Pipe things to the screen, but in pages
  sc query | more
  //press Enter to move one line....
  //press Space to move down one page...
  Persisting Command Line results
  First -- remember that you can invoke any command line application from the Run, and persist the info on screen with the /K flag...eg:
  cmd /K ping skysigal.xact-solutions.com