Have you ever wanted to send the output of a PowerShell command to a file? Well I am going to show you how.
When you run a PowerShell command like Get-Process, Get-Host…. It will return useful information but sometimes you want to save that information for future reference. You could cut and paste or take a screenshot but these are way more complicated than simply using the inbuilt functionality within PowerShell.
For example if you wanted to output the processes currently running you would use Get-Process. To output it you would add the below command
Get-Process > yourfilename.txt
Get-Process > C:\PowerShell\Process.txt