I have a Windows Server 2012 Standard, named DC. This server is a Domain Controller. I have Sharepoint 2013.

The domain is DEVRSG.COM. I log on in DC machine using DEVRSG\Administrator, is Domain Administrator.

The user for execute powershell that I use is DEVRSG\svcwss.

The user DEVRSG\svcwss:

  • belongs to WSS_ADMIN_WPG group
  • belongs to Administrators group (devrsg.com/Builtin)
  • belongs to Active Directory - Domain Users
  • is a Farm Administrator
  • is SPShellAdmin (I use command Get-SPShellAdmin)
  • has permissions on Sharepoint_Config and Sharepoint_AdminContent_{GUID} databases.

I try add the user to the local administrator group but the server is Domain Controller. Thuan Nguyen SharePoint MVP @nnthuan says "You CAN'T create a local account on the domain controller."

Run the Sharepoint 2013 Management Shell as the user DEVRSG\svcwss.

I try to execute a powershell script for deploy a WSP (Add SPSolution, features, etc).

I get "Access denied." error

WriteTraceErrorException : Message: Access denied.. StackTrace:    at
   at Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path, String name, UInt32 lcid, Boolean
   at Microsoft.SharePoint.Administration.SPSolutionCollection.Add(String path, UInt32 lcid)
   at Microsoft.SharePoint.PowerShell.SPNewCmdletBase1.InternalProcessRecord()
   at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()
At C:\Temporal\Instalacion_DeploySharepointEscritorio_Pub\common.ps1:282 char:3
+         WriteTraceErrorException($_.Exception)
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,WriteTraceErrorException

any suggestions?


1 Answer 1


as user19952 noted, run powershell as admin.


Your running an admin level task, the user DEVRSG\svcwss your user doesn't have the sufficient levels to run the dll for Microsoft.SharePoint.Administration.


click start -> click all programmes -> click Microsoft sharepoint 2013 products -> right click sharepoint 2013 management shell -> run as admin.

or win 8 style:

hover top right -> click search button and search for sharepoint 2013 management shell -> click sharepoint 2013 management shell -> bottom screen menu click on run as admin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.