I’ve configured the Windows Task Scheduler on my Server to run a PowerShell Script. However, the Windows Task Scheduler Fails to run with error code 2147943785. Below the error detail that I got:

- <Event xmlns="">
- <System>
  <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{DE7B24EA-73C8-4A09-985D-5BDADCFA9017}" /> 
  <TimeCreated SystemTime="2019-05-01T19:45:49.177538800Z" /> 
  <Correlation ActivityID="{2B3B1F12-FB23-0000-41F8-4F2B23FBD401}" /> 
  <Execution ProcessID="800" ThreadID="3596" /> 
  <Security UserID="S-1-5-18" /> 
- <EventData Name="TaskStartFailedEvent">
  <Data Name="TaskName">\msExchHideFromAddressLists</Data> 
  <Data Name="UserContext">msnoob\user1/Data> 
  <Data Name="ResultCode">2147943785</Data> 
Task Scheduler Error 101
Task Scheduler Error


The user that is configured to run the task scheduler must have “Log on as a batch job” rights on the computer. You can configure this on the local security policy of the computer or using GPO. The “Log on as a batch job” policy location is under

Security Setting -> Local Policies -> User Rights Assignment -> Log On As Batch Job

Log On As a Batch Job

Don’t forget to update the policy using GPUPDATE /Force if you set this policy on GPO.

If you like this article, please share, subscribe or you can follow our Facebook Page and Twitter.