Powershell console output

How to Write to a Text File To save data to a text file use the Out-File cmdlet: Get-Process | Out-File C:\Scripts\Test.txt To append data to an existing file, add the –append parameter: By comparison, a For Each statement might look like Get-Process | Out-File C:\Test.txt –append You can also use the MS-DOS redirection characters (> ................
................