Windows error 0x0004131C, 267036

Detailed Error Information

SCHED_S_BATCH_LOGON_PROBLEM[1]

MessageThe task is registered, but may fail to start. Batch logon privilege needs to be enabled for the task principal.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeveritySuccess

This code indicates success, rather than an error. This may not be the correct interpretation of this code, or possibly the program is handling errors incorrectly.

Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][1]
DescriptionThe source of the error code is COM/OLE Interface management.[2][1]
Error Code4892 (0x131c)

Questions

0votes
0answers

How to detect batch logon disabled on RegisterTaskDefinition

I use Microsoft.Win32.TaskScheduler for creating new Task in Windows Scheduler. Code like this: using (TaskService ts = new TaskService()) { // ... ts.RootFolder.RegisterTaskDefinition( taskName, td, TaskCreation.Create, userId, password, TaskLogonType.Password); } My problem that I cant detect situation when userId has no rights for batch logon. In Windows API this situation [...] read more
c#

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0