Delete or Create Scheduled task via WDM??!!

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7606
    Iowa-Wyse
    Participant
    • Total Post: 17
    • Regular Joe
    • ★★

    We are having issues all of the sudden where the time is off on our c90le7 win 7 embedded devices. We currently have a scheduled task to reboot at 3am every day. However they are rebooting during the day and coming back up with a 2:30am time. So they are rebooting every 30min or so. These have been in production for about a year and the problem is just now popping up.

    How can I delete or disable the current scheduled task via WDM? Or how can I create another task to try and time sync every hour?

    Thanks
    Nick

    #23057
    Iowa-Wyse
    Participant
    • Total Post: 17
    • Regular Joe
    • ★★

    I am trying to run this script via wdm. When I run it logged in as admin it works just fine. Its not working via the wdm script however. Is there a way that I need to have the script login as my local admin?

    [Version]
    Number=DeleteTask
    Description=Delete Scheduled Task
    OS=WES7
    Category=Other Packages
    USE_REMOTE=Yes
    ; Date: 11/29/2012

    [Script]
    EX “schtasks.exe /Delete /TN “Daily Reboot” /F” “+”

    #23067
    ConfGen
    Keymaster
    • Total Post: 11485
    • Jedi Master
    • ★★★★★★★

    The scripts always run as service acconut. You can try to put the string in a batch file and execute the batch file from the script.

    CG

    #23069
    Iowa-Wyse
    Participant
    • Total Post: 17
    • Regular Joe
    • ★★

    Thanks, the batch file worked just fine. I copied it over and then executed it.

    Thanks!
    Nick

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.