Event ID 10016 while settting up O365 PowerShell Script 4.2

  • 7019010
  • 17-May-2017
  • 12-Sep-2017

Environment

Retain 4.2
O365 PowerShell Script 4.2
Windows Server 2016

Situation

When running the script for the first time the Scheduled Task does not run at the end of the script as expected.
In the Event log an error similar to the below appears:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID 
{D63B10C5-BB46-4990-A94F-E40B9D520160}
 and APPID 
{9CA88EE3-ACB7-47C8-AFC4-AB702511C276}
 to the user NT AUTHORITY\LOCAL SERVICE SID (S-1-5-19) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.

Resolution