Not sure if this is defect of the Task Scheduler or Powershell.Using psv2 on 2008R2.When the task "program" is "powershell" the "Start in" path is observed and the $pwd of the script execution is the "start in" dirHowever, when the task "program" is "powershell.exe" the "Start in" path is NOT observed and the $pwd of the script execution is C:\windows\system32So when the script writes to a file, and you expect the current dir to be the "start in" dir, it is not unless you remember to make the tasks "program" = "powershell" without .exe
Have you seen this problem before in this product?
Please wait...