Monday, May 23, 2016

SharePoint Timer Service failed for Email

Error:
Access denied when deploying a timer Job or activating a feature from SharePoint 2010 content web application

Solution:

-You need to run following script using powershell

-make below script in ps1 file,

function Set-RemoteAdministratorAccessDenied-False()
{
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") > $null
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") > $null

 
    $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
 
    $contentService.RemoteAdministratorAccessDenied = $false
   $contentService.Update()        
}

Set-RemoteAdministratorAccessDenied-False


then run using powershell and reset IIS as seen below










That's all!






No comments:

Post a Comment