Hi,
I'd need to run a 32-bit powershell in a scheduled task. The script itself is on a share. That are 2 things to tackle, first thing I tried with running
%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe
in the program/script properties of the scheduled task , then I give the parameters
-NoProfile -WindowStyle Hidden -command ". .'\\myshare\main.ps1 -parameterfile \\myshare\myparameterfile'" but I get error 0x1 in the scheduled job
Running the ps1 from a 32-bit powershell works fine (although it pops up with 'run once' each action in the script).
So my questions:
*howto debug the problem in the scheduled task?
*isn't there a way to "mount" the share so it doesn't throw the security warnings notifying that it is a non trusted location?
Jan Hoedt