PowerShell

Error occurred in deployment step ‘Recycle IIS Application Pool’: The local SharePoint server is not available.

For security and availability purposes we’ve moved away from using the SharePoint Farm account for development. Adding new devs to your farm can be pretty simple if you know what tools to use. Frist, I always add my devs to the local admin group. Second you need to run the following commands.

This adds the domain user to the appropriate roles

Get-SPDatabase | Where-Object {$_.WebApplication -like "SPAdministrationWebApplication"} | Add-SPShellAdmin domain\username


Get-SPDatabase | ?{$_.Name -eq "WSS_Content"} | Add-SPShellAdmin –Username domain\username

These commands need to be run as the SharePoint Farm Administrator.

About the author