Sharepoint 2010

Restore-SPSite : The site collection could not be restored. If this problem persists, please make sure the content databases are available and have sufficient free space.

Error: “Restore-SPSite : The site collection could not be restored. If this problem persists, please make sure the content databases are available and have sufficient free space.” Error Type : Higher level generic error You might see this error while…

SharePoint powershell script to find unique permissions in sharepoint

#This script loops through all the sites in a site collection and then writes out any that have unique permissions. [System.Reflection.Assembly]::Load(“Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”) | out-null $siteurl = “Enter URL Here” $site=new-object Microsoft.SharePoint.SPSite($siteurl) foreach($web in $site.AllWebs) { if ($web.HasUniqueRoleAssignments) {…

Sharepoint powershell loop all site collection, sites, sub sites

[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) > $null   $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local $websvcs = $farm.Services | where -FilterScript {$_.GetType() -eq [Microsoft.SharePoint.Administration.SPWebService]} $webapps = @()   foreach ($websvc in $websvcs) { write-host “###############Web Applications################” foreach ($webapp in $websvc.WebApplications) { write-host “Webapp Name :”$webapp.Name “Webapp URL :”$webapp.URL…

Sharepoint Powershell get analyzer reports as email

#Get Central Admin Web Application and Web objects $caWebApp = (Get-SPWebApplication -IncludeCentralAdministration) | ? { $_.IsAdministrationWebApplication -eq $true } $caWeb = Get-SPWeb -Identity $caWebApp.Url #Set up from, to and server addresses $toAddress = “jayaraja.jayaraman@awacservices.com” $fromAddress = $caWebApp.OutboundMailReplyToAddress $serverAddress = $caWebApp.OutboundMailServiceInstance.Server.Address…

Bitnami