Trying to add Admin account in project server 2010 via powershell RRS feed

  • Question

  • Dear All

    Unfortunately some one removed admin account from PWA 2010 so i have tried to add admin account via powershell command

    New-SPProjectSiteAdministrator -AdminAccount "dir\santosh" -Url "https://myserver/PWA"

    New-SPProjectSiteAdministrator : <nativehr>0x80070005</nativehr><nativestack></nativestack> At line:1 char:31 + New-SPProjectSiteAdministrator <<<<  -AdminAccount "dir\santosh" -Url "https://myserver/PWA"     + CategoryInfo          : InvalidData: (Microsoft.Offic...ewAdministrator:PSCmdletNewAdministrator) [New-SPProjectSiteAdministrator], Unaut    horizedAccessException     + FullyQualifiedErrorId : Microsoft.Office.Project.Server.Cmdlet.PSCmdletNewAdministrator

    Getting above error

    Help me



    Monday, March 31, 2014 1:27 PM


  • Hello,

    Can't you log in with an account that is already in the Administrators group then add the new account? I think you will need to run the command with a user account that already has admin access to PWA - I don't currently have an environment to test this on.


    Paul Mather | Twitter | | CPS

    Monday, March 31, 2014 4:15 PM

All replies