Get-ScheduledTask does not work properly with SCCM

Topics: Archive - General
Sep 30, 2013 at 11:58 AM
When running the application "with administrative right's" the function Get-ScheduledTask does not work for some reason. The script is unable to delete the scheduled task in the end, leaving the scheduled task in Windows forever. If we run it again the script will hang, because it is unable to detect that the scheduled task already exists and it will try to create a new task with the same name withouth the /force flag.

If we run the application in SCCM "with user's rights" everything works fine, but this is obviously never desirable.

Can anyone confirm this problem?
Oct 1, 2013 at 10:21 AM
I posted this as an issue as well. I have found the cause of the problem and a solution.
Oct 7, 2013 at 2:38 PM
Thanks. Fixed in latest version, which we'll have released in the next day or two hopefully. It's pushed to Git for now.