There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Get-ScheduledTask does not work properly with SCCM
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?