SharePoint 2013 PSConfig Wizard - Failed to secure the SharePoint resources.

SharePoint 2013 on Windows 2012 & SQL 2012 , 3 Tier arch

when running Configuration wizard its failing at 3/10 with the following error Any help is greatly appreciated please help 

----

Failed to secure the SharePoint resources.
An exception of type System.UnauthorizedAccessException was thrown.  Additional exception information: Attempted to perform an unauthorized operation.
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
   at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
   at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
   at System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
   at System.IO.DirectoryInfo.SetAccessControl(DirectorySecurity directorySecurity)
   at Microsoft.SharePoint.Administration.SPResourceAccess.SetDirectoryAccessRule()
   at Microsoft.SharePoint.Administration.SPResourceAccess.SecureResources(Boolean isSingleBox, EventHandler`1 progressUpdateEvent)
   at Microsoft.SharePoint.PostSetupConfiguration.SecurityTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

---



  • Moved by Hemendra AgrawalMVP Thursday, December 27, 2012 3:55 PM (From:SharePoint Legacy Versions - Setup, Upgrade, Administration and Operations)
November 13th, 2012 3:28pm

Hi SP Boom,

did you manage to solve the problem. i'm also having the same problem. have no idea to solve. mind to share if got any finding?

Free Windows Admin Tool Kit Click here and download it now
December 18th, 2012 7:04am

SharePoint 2013 on Windows 2012 & SQL 2012 , 3 Tier arch

when running Configuration wizard its failing at 3/10 with the following error Any help is greatly appreciated please help 

----

Failed to secure the SharePoint resources.
An exception of type System.UnauthorizedAccessException was thrown.  Additional exception information: Attempted to perform an unauthorized operation.
System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
   at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
   at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
   at System.Security.AccessControl.FileSystemSecurity.Persist(String fullPath)
   at System.IO.DirectoryInfo.SetAccessControl(DirectorySecurity directorySecurity)
   at Microsoft.SharePoint.Administration.SPResourceAccess.SetDirectoryAccessRule()
   at Microsoft.SharePoint.Administration.SPResourceAccess.SecureResources(Boolean isSingleBox, EventHandler`1 progressUpdateEvent)
   at Microsoft.SharePoint.PostSetupConfiguration.SecurityTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

---



I'm having the same problem and couldn't find an answer to it.

Did anyone managed to solve this?

December 24th, 2012 8:42am

I get an error like that:
  • Edited by chinhtt Thursday, January 03, 2013 2:34 AM
  • Proposed as answer by Mohammed Al-Matry Monday, January 14, 2013 9:25 AM
  • Unproposed as answer by Mohammed Al-Matry Monday, January 14, 2013 9:25 AM
  • Proposed as answer by AleemZ Monday, January 14, 2013 11:48 AM
Free Windows Admin Tool Kit Click here and download it now
January 3rd, 2013 2:33am

I have managed to solve the problem.

Make sure the Account used for Installation is in the "Administrators Group"

Next, take ownership of the following directory: "C:\Windows\Tasks".

And thats it...

Good luck.

January 14th, 2013 9:29am

Hi,

It worked for me too when I have  given full control rights on windows\tasks folder

Thanks

  • Marked as answer by Aleem-SP Tuesday, May 21, 2013 4:29 PM
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2013 11:49am

I have managed to solve the problem.

Make sure the Account used for Installation is in the "Administrators Group"

Next, take ownership of the following directory: "C:\Windows\Tasks".

And thats it...

Good luck.

GREAATT!!!

Thank you, I also had the same problem.

Just realized, we did some GPO to reduce the security permission on the Tasks folder, since some viruses attacking this folder.

Once again, thank you.

February 27th, 2013 7:51am

This worked for me too, great advice
Free Windows Admin Tool Kit Click here and download it now
June 25th, 2013 10:18am

Unfortunately, neither of the above fixes worked for me so have rolled back the farm to before SP13 patches were installed.  Are there any other possible fixes?
May 18th, 2015 9:48am

I know this is a bit late, but I was also having a similar issue and similar error message posted above. It would get to step 2 running the config wizard and then fail. I would get this error

"Failed to secure the SharePoint resources.

An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: Cannot perform security configuration because the configuration database does not exist.  You must create or join to a configuration database before doing security configuration.

Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException: Exception of type 'Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException' was thrown."

The solution I found to work for me.

I ran this in the shell window: Disconnect-SPConfigurationDatabase (Disconnects the local server computer from the farm, I first tried the connect command and it said it was still connected so I ran the disconnect)

In the Prompt I said "A" for all.

Then I retried the wizard as admin and it completed.

What had happened was I removed a server from my farm by clicking the remove link in the Manage servers in the farm section in the Sharepoint Central administration page. After I removed it I wasn't able to add it back using the config wizard.


Free Windows Admin Tool Kit Click here and download it now
June 13th, 2015 12:39am

I know this is a bit late, but I was also having a similar issue and similar error message posted above. It would get to step 2 running the config wizard and then fail. I would get this error

"Failed to secure the SharePoint resources.

An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: Cannot perform security configuration because the configuration database does not exist.  You must create or join to a configuration database before doing security configuration.

Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException: Exception of type 'Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException' was thrown."

The solution I found to work for me.

I ran this in the shell window: Disconnect-SPConfigurationDatabase (Disconnects the local server computer from the farm, I first tried the connect command and it said it was still connected so I ran the disconnect)

In the Prompt I said "A" for all.

Then I retried the wizard as admin and it completed.

What had happened was I removed a server from my farm by clicking the remove link in the Manage servers in the farm section in the Sharepoint Central administration page. After I removed it I wasn't able to add it back using the config wizard.


June 13th, 2015 12:41am

I know this is a bit late, but I was also having a similar issue and similar error message posted above. It would get to step 2 running the config wizard and then fail. I would get this error

"Failed to secure the SharePoint resources.

An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: Cannot perform security configuration because the configuration database does not exist.  You must create or join to a configuration database before doing security configuration.

Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException: Exception of type 'Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException' was thrown."

The solution I found to work for me.

I ran this in the shell window: Disconnect-SPConfigurationDatabase (Disconnects the local server computer from the farm, I first tried the connect command and it said it was still connected so I ran the disconnect)

In the Prompt I said "A" for all.

Then I retried the wizard as admin and it completed.

What had happened was I removed a server from my farm by clicking the remove link in the Manage servers in the farm section in the Sharepoint Central administration page. After I removed it I wasn't able to add it back using the config wizard.


  • Edited by Joey Morris Saturday, June 13, 2015 4:43 AM
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2015 4:38am

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

Other recent topics Other recent topics