I tried it, but it ended with code 1, and it failed.
I have experimented.
Running it from the windows command will succeed.
(schtasks /Create /SC minute /mo 2 /TN “test1” /TR “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -ExecutionPolicy Unrestricted -File ‘C:\test\date.log’” /ST 10:00 /F /NP)
However, if you run it with bigfix, it will fail.
My guess is that this is due to the “/ np” command.
Why would it succeed if I run it in the cmd window, and fail if I run it in bigfix?
I tried running it after changing the “/ TR” path, but it still failed.
(Waithidden cmd.exe /c schtasks /create /tn “Test” /sc WEEKLY /mo 2 /D SUN /st 02:30:00 /np /tr “C:\notepad.exe”)