Just use redirection operator to save a Command’s Output in Command Prompt to a File.
Example:
ping google.com > "C:\Users\Server\Desktop\Ping.txt"
The above command stores ping command output to a file by the name of Ping.txt located on my desktop.