
Open the command prompt (or PowerShell) and change to your desire location.
cd C:\ITSITI\
2. Execute the command and add with > [YOUR_FILE_NAME].txt. As example below, we want to capture the netstat -an output into NETstat.txt file.
C:\ITSITI> netstat -an > NETstat.txt
3. The result as below,


