I am trying to create a log file from a PowerShell task in Task Scheduler, but nothing that I try is working.
Program/script
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Add arguments
-ExecutionPolicy Unrestricted -File "C:\Users\Boston\script.ps1" > C:\Users\Boston\script.log
This is not saving the output of the task to a file.