Share via

Windows 2016 | Windows 2019 - schedule task

Sabo, Eric 1 Reputation point
Oct 16, 2020, 11:00 AM

We are trying to convert our existing schedule task from an windows 2012 to a windows 2016/2019 server and it seems when we run the schedule task we are getting 0xFFFD0000 error - is there any article that shows how to accomplish this under 2016/2019 as there has to be an OS change or a permission we are missing.

I can run every script when logged onto the desktop.

Thanks in advance.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,832 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,538 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Leon Laude 85,841 Reputation points
    Oct 16, 2020, 11:18 AM

    Hi @Sabo, Eric ,

    The 0XFFFD0000 error usually appears when there's a path error, is the path for the scripts correct?

    You can refer to the following article:
    PowerShell script does not run as Scheduled Task – 0xFFFD0000 error

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    0 comments No comments

  2. Jenny Yan-MSFT 9,336 Reputation points
    Oct 19, 2020, 2:34 AM

    Hi,
    Is there any update after checking suggestions provided above?

    I am also attaching a similar thread for your reference, in which, the error message was resolved by below post:
    0XFFFD0000 appears for some a path error. So is the path for the ps1 correct?
    Try as the program;
    %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
    and as the action;
    -NoProfile -NoLogo -NonInteractive -ExecutionPolicy Bypass -File “C:\scripts\PowerShellScript-Copy-email-USER-W1.ps1”

    Reference link:
    Powershell script cannot run as scheduled task-error 0xfffd0000
    https://social.technet.microsoft.com/Forums/en-US/b180efba-e0e9-4790-b5de-6a07eb8a71d5/powershell-script-cannot-run-as-scheduled-taskerror-0xfffd0000?forum=win10itprogeneral


    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny


  3. Thameur-BOURBITA 33,976 Reputation points
    Oct 20, 2020, 9:52 PM

    Hi,

    To move a scheduled task to another server, you have to perform the following steps:

    • Export scheduled task from old server and import it to new one
    • Copy the script launched by scheduled task to new server
    • Update the script path and service account in scheduled task settings on new server

    Please don't forget to mark this reply as answer if it help you to fix your issue

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.