To output powershell results to a text file, add the below to the end of your script. Change the location as you wish.
| out-File “C:\results.txt”
Subscribe to new tech posts.
We will never send you spam email or forward your details to third parties.
This will close in 0 seconds