Excel can not be activated from a Service or the Task Scheduler

This applies to any program type including c#, VB, PowerShell etc. that uses OLE Automation.

There are many different solutions/configurations.
Please be EXTREMELY careful when modifying the windows configuration.
Here is the most common solution – Please note that it does NOT work for all configurations. So you have to experiment a bit.

Step 1.
Open Component Services (Start -> Run, type in dcomcnfg)
Drill down to Component Services -> Computers -> My Computer and click on DCOM Config

Step 2.
Right-click on Microsoft Excel Application and choose Properties.
Some times “The interactive user” works .. and sometimes “The user”.

Step 3
Make sure the following folders exists.
“C:\Windows\SysWOW64\config\systemprofile\Desktop”
“C:\Windows\System32\config\systemprofile\Desktop”

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment