|
Answer» We are having problems with our exchange server STARTING up the stores after a cold backup and I want to log each command from the NET Start to a log file to show the RESULTS of each command.
Ex: net start MSExchangeSA >> exchg_start_log.txt
This creates the log but does not put the results into the file. Can someone help me with the correct structure of the command?
Thanks, JDeackMost, if not all the Microsoft utilities output to TWO data streams (one for STDOUT and one for STDERR).
Something like this may work:
Code: [Select]net start MSExchangeSA 1>>exchg_start_log.txt 2>>error.log
You cannot direct both streams to the same output file within a single command.
Good luck. Code: [Select]net start MSExchangeSA > c:\file.txt 2>&1
|