Syntax for Redirecting Command Output

Most of the commands report data or error messages to the console or standard out (stdout) for the system. The output for any command can be redirected to a file by specifying > filename at the end of the command.

This example redirects the output from the get command to a file:

> get identity Adam.Kennedy > c:\output\AdamKennedyID.xml