Development Tip

작업 스케줄러가 작업을 시작하는 문제

yourdevel 2020. 12. 7. 20:59
반응형

작업 스케줄러가 작업을 시작하는 문제


Windows 2008 R2 컴퓨터에 예약 된 작업이 있지만 로그 (이벤트 로그)에 다음 오류와 함께 트리거되지 못했습니다.

오류:

작업 스케줄러가 "SAFFRON3 \ cb_admin"사용자에 대해 "\ Hyatt_International_Distribution"작업을 시작하지 못했습니다. 추가 데이터 : 오류 값 : 2147943645.

"LUAIsElevatedToken"에서 발생하는 오류로 인해 작업 스케줄러가 작업 엔진 ""프로세스를 시작하지 못했습니다. Command = "taskeng.exe". 추가 데이터 : 오류 값 : 2147943645.

전체 오류는 다음과 같습니다.

로그 이름 : Microsoft-Windows-TaskScheduler / Operational 원본 : Microsoft-Windows-TaskScheduler 날짜 : 2012 년 4 월 16 일 오전 9:59:59 이벤트 ID : 101 작업 범주 : 작업 시작 실패 수준 : 오류 키워드 :
사용자 : SYSTEM 컴퓨터 : xyz 설명 : 작업 스케줄러가 "SAFFRON3 \ cb_admin"사용자에 대한 "\ Distribution"작업을 시작하지 못했습니다. 추가 데이터 : 오류 값 : 2147943645. 이벤트 Xml :

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-TaskScheduler" Guid="{de7b24ea-73c8-4a09-985d-5bdadcfa9017}" />
    <EventID>101</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>101</Task>
    <Opcode>101</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2012-04-16T14:59:59.950Z" />
    <EventRecordID>101476</EventRecordID>
    <Correlation />
    <Execution ProcessID="336" ThreadID="1216" />
    <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel>
    <Computer>xyz</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData Name="TaskStartFailedEvent">
    <Data Name="TaskName">\Distribution</Data>
    <Data Name="UserContext">SAFFRON3\cb_admin</Data>
    <Data Name="ResultCode">2147943645</Data>
  </EventData>
</Event>

작업은 다음과 같이 설정됩니다. 사용자가 로그인했는지 여부, 최고 권한 사용, 전원 : AC 전원에서 시작, 요청시 작업 실행 허용.

작업은 거의 매일 올바르게 실행되지만 어제 실패했습니다. 특별한 이유가 있습니까?

감사합니다, Kaustubh


내 작업이로 설정 Run only when user is logged on되었고 로그인하여 수동으로 시작하는 동안에도 실패했습니다. 사용자가 이미 설정되었습니다. 비밀번호 변경 등이 없습니다.

"사용자 변경"을 클릭하고 자신을 다시 선택하여 문제를 해결했습니다.

나는 AD가 사용자 SID를 변경하거나 그 정도까지 변경했기 때문에 발생했을 수 있다고 생각합니다. 아마도 IT는 AD에서 사용자 관리를하고 있었을 것입니다.


속성에 대해

라디오 버튼이 선택되었는지 확인

Run only when user is logged on 

위 옵션을 선택했다면 이것이 실패한 이유입니다.

그래서 옵션을

Run whether user is logged on or not

또는

다른 경우 사용자가 자신의 로그인 자격 증명을 변경했을 수 있습니다.


exe 파일 자체의 속성을 열어 문제를 해결했습니다. 호환성 탭에는 "관리자 권한으로 실행"이라는 권한 수준 확인란이 있습니다.

내 계정에 관리 권한이 있지만 작업 스케줄러에서 시작할 때 작동하지 않았습니다.

상자를 선택 취소하고 스케줄러에서 다시 시작했고 작동했습니다.


As far as I know you will need to give the domain account the proper "User Rights" such as "Log on as a Batch Job". You can check that in your Local Policies. Also, you might have a Domain GPO which is overwriting your local policies. I bet if you add this Domain Account into the local admin group of that machine, your problem will go away. A few articles for you to check:

http://social.technet.microsoft.com/Forums/en/windowsserver2008r2general/thread/9edcb63a-d133-45a0-9e8c-f1b774765531 http://social.technet.microsoft.com/Forums/lv/winservergen/thread/68019b24-78a5-4db0-a150-ada921930924 http://sqlsolace.blogspot.com/2009/08/task-scheduler-task-does-not-run-error.html?m=1 http://technet.microsoft.com/en-us/library/cc722152.aspx


  • Right Click on the Task in Task Scheduler
  • Click on the Actions tab
  • Click on Edit
  • Remove the quotes around the path in the "Starts In" textbox.

My task also failed to start.

I solved it by specifying not only the path to the executable, but also the path to the folder of the executable (Tab "Actions" | Edit | TextBox "Start in").


Thanks all, I had the same issue. I have a task that runs via a generic user account not linked to a particular person. This user as somehow logged off the VM, when I was trying to fix it I was logged in as me and not that user.

Logging back in with that user fixed the issue!


I was having the same issue. I tried with the compatibility option, but in Windows 10 it doesn't show the compatibility option. The following steps solved the problem for me:

  1. I made sure the account with which the task was running had the full access privileges on the file to be executed. (Executed the task and was still not running)
  2. I man taskschd.msc as administrator
  3. I added the account to run the task (whether was it logged or not)
  4. I executed the task and now IT WORKED!

So somehow setting up the task in taskschd.msc as a regular user wasn't working, even though my account is an admin one.

Hope this helps anyone having the same issue


Check whether you are scheduling a task to trigger an executable (.exe) or a batch (.bat) file. If you have scheduled any other file to open (for example a .txt or .docx file), the file not open.

참고URL : https://stackoverflow.com/questions/10187292/issue-with-task-scheduler-launching-a-task

반응형