Archive: Posts Tagged ‘Access is denied’

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

No comments July 8th, 2010

This error seems to pop up quite often, and it’s a little frustrating when your first encounter it. When I experienced it, I was attempting to schedule a crawl from the SharePoint 2007 Search Administration. I was able to manually run full and incremental crawls but not schedule them.

The issue was actually pretty simple to resolve. Since these scheduled events are scheduled much like any other windows task, using the windows scheduled tasks, we just need to insure SharePoint has access to add new jobs in there. We’ll do this by adding WSS_WPG with read/write permissions to C:\%windir%\tasks. Follow these steps:

  1. Open CMD, and RUN attrib –s %windir%\tasks (Changes the view of the folder so you can edit the ACL permissions)
  2. In Windows Explorer, browse to C:\%windir%, right-click the Tasks folder, and then click Properties.
  3. Add the WSS_WPG group
  4. Assign Read/Write Permissions
  5. Click OK
  6. attrib +s %windir%\tasks (This resets the Tasks Property back to the default view)

Once the above has been completed you should be able to schedule a full or incremental crawl.