Is it possible to export the command prompt session result to a host over the network?
If the location where you want to save the file is accessible over the network, then you can simply use command redirection to send the output of your command directly to a file. For instance (with the
dir > \\SERVER\Path\file.txt
If you want to do this multiple times and append the output to the same file each time, use
>> instead of
Edit: if the remote machine requires credentials other than those of the logged in user, try this:
net use \\SERVER\Path /user:SERVER\username password your_command > \\Server\Path\file.txt net use \\Server\Path /d
The first line connects to the shared folder using the given username and password, and the third line disconnects.