Task Scheduler - Send an E-mail Action (Has anyone gotten this to work?)
Windows 7 - SP1 - 64bit to an Exchange 2007 server. I am trying to get task scheduler to send emails and have yet to get it to work, and from what I can find no one else has been successful either. I create a new task and select send email and fill out the form I have tried using email addresses, user names, and display names, I have also tried the FUNC , net bios name, and ip address for the server to no avail. I am able to send email via telnet using the same information. When I run the task it runs for 5 minutes then gives the following error: Log Name: Microsoft-Windows-TaskScheduler/Operational Source: Microsoft-Windows-TaskScheduler Date: 8/17/2011 3:31:02 PM Event ID: 202 Task Category: Action failed Level: Error Keywords: User: ABC\Administrator Computer: MyWorkstation.ABC.local Description: Task Scheduler failed to complete task "\New Test" , instance "{a9d2ef35-2a1f-4e33-a627-cae897702110}" , action "Test from Task manager" . Additional Data: Error Value: 2147746321. Event 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>202</EventID> <Version>0</Version> <Level>2</Level> <Task>202</Task> <Opcode>102</Opcode> <Keywords>0x8000000000000000</Keywords> <TimeCreated SystemTime="2011-08-17T22:31:02.628951700Z" /> <EventRecordID>12118</EventRecordID> <Correlation ActivityID="{A9D2EF35-2A1F-4E33-A627-CAE897702110}" /> <Execution ProcessID="480" ThreadID="4412" /> <Channel>Microsoft-Windows-TaskScheduler/Operational</Channel> <Computer>MyComputer.ABC.local</Computer> <Security UserID="S-1-5-21-155702016-3172640972-1587170240-500" /> </System> <EventData Name="ActionFailure"> <Data Name="TaskName">\New Test</Data> <Data Name="TaskInstanceId">{A9D2EF35-2A1F-4E33-A627-CAE897702110}</Data> <Data Name="ActionName">Test from Task manager</Data> <Data Name="ResultCode">2147746321</Data> </EventData> </Event> Mike
August 18th, 2011 7:05pm

You can try using this alternate method. Download this small application called sendemail.exe and then follow the instructions on how to schedule it from here. http://www.makeuseof.com/tag/send-automated-emails-save-time-sendemail-windows-task-scheduler/ Regards, ~G MCSE, MCDST, MCITP, MCTS, MCP, CCNA
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2011 7:30pm

I am not real interested in Work-a-rounds I already have one working; I would like to get the Task Scheduler to actually workMike
August 18th, 2011 7:36pm

Hi, There is a threat in the Windows Server 2008 section: http://social.technet.microsoft.com/forums/en-us/windowsserver2008r2general/thread/03971419-AE32-4B5C-B4C3-B7751B9C5E02 Maybe you can have a look at it....
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2011 7:45pm

Yes, I had seen the thread, thank you. 1. Does the Exchange server allow anonymous relay to send email? Yes there is a connector that allows anonymous relay from this workstations IP. 2. Ensure the credentials used for the SMTP authentication need to be the same credentials that are used to execute the task. This means that the same account must have privileges on both machines to send the email. The task scheduler really doesn’t ask for sending credentials other than credentials that are used to execute the task, unless I am missing something. The sender is authorized to send email. But with anonymous enabled why would this matter? 3. I can accomplish the same thing from this workstation via telnet without authentication. Mike
August 18th, 2011 11:24pm

Hi, Thanks for the post. Based on my research, I found that this issue may be caused by Authentication method and permission issue. Please perform the following actions for a test. 1) Create a new task scheduler and General tab >> Security Options > click run whether user id logged on or not. 2) Go to exchange server and go to default receive connector then click integrated windows authenticaiton. 3) we must gave this permision. Get-ReceiveConnector default* | Add-ADPermission -User domainname\username -ExtendedRights "ms-Exch-SMTP-Accept-Any-Sender" Then test it to see whether this issue is resolved. Regards, Juke TechNet Subscriber Support in forum If you have any feedback on our support, please contact tnmff@microsoft.com. Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
August 19th, 2011 2:27am

I have completed what you ask which is the same way I was doing it except #3 but got the same result, but here is some additional information. 1. If I use user names for the from and to e.g. myaccount and youraccount the task fails immediately 2. If I use email addresses for the from and to e.g. myaccount@mydomain.com and youraccount@mydomain.com it takes about 5 minutes to fail. 3. They both fail with the same error listed in the initial post 4. It does not appear to matter what I use for the server name either mail.mydomain.com; server1.mydomain.local or local IP address it all fails the same. I would really like to hear from someone that has actually gotten this to work in the past, or can make it work from their Windows 7 workstation; from what I can find no one ever has. Mike
August 20th, 2011 11:21am

Hi, Thanks for your update. Please modify the permission of your ReceiveConnector so that the Exchange server can receive this kind of notification email. Based on my research, I found that this is a permission issue and this task is already implemented, so I think this is related to the settings of Exchange server. If the issue still occurs, I suggest you to post the thead at http://social.technet.microsoft.com/forums/en-US/category/exchangeserver/ for assistance. The reason why we recommend posting at the appropriate forum is you can get the most qualified pool of respondents. Regards, Juke TechNet Subscriber Support in forum If you have any feedback on our support, please contact tnmff@microsoft.com. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” OK I am done here, it just doesn't work.Mike
Free Windows Admin Tool Kit Click here and download it now
August 23rd, 2011 11:52am

Hi, Thanks for your update. Please modify the permission of your ReceiveConnector so that the Exchange server can receive this kind of notification email. Based on my research, I found that this is a permission issue and this task is already implemented, so I think this is related to the settings of Exchange server. If the issue still occurs, I suggest you to post the thead at http://social.technet.microsoft.com/forums/en-US/category/exchangeserver/ for assistance. The reason why we recommend posting at the appropriate forum is you can get the most qualified pool of respondents. Regards, Juke TechNet Subscriber Support in forum If you have any feedback on our support, please contact tnmff@microsoft.com. Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
August 23rd, 2011 9:15pm

Hi, Since this task is already implemented, please post the thread at the forum I mentioned above. Thanks for your understanding. Regards, Juke TechNet Subscriber Support in forum If you have any feedback on our support, please contact tnmff@microsoft.com. Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
August 23rd, 2011 9:52pm

Hi, Becasue this issue is related to the other products. So I will mark my reply as "Answered". If you have further question on this, please feel free to let us know. You may also choose to unmark this thread. Thanks for your understanding. Regards, Juke TechNet Subscriber Support in forum If you have any feedback on our support, please contact tnmff@microsoft.com. Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
August 27th, 2011 9:59pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics