Archive for February, 2011

Web.config Alternatives

February 26, 2011 Leave a comment

Good resource for alternatives of storing configuration data in web.config


SharePoint 2010 Architecture Document on MSDN

February 25, 2011 Leave a comment

Great article with lots of SP2010 info.

Categories: SharePoint Tags:

PowerShell Script to loop through all the site collections and backup each Site

February 10, 2011 1 comment

Just change the backup location and script is ready to go.


$snapin = Get-PSSnapin | Where-Object {$_.Name -eq ‘Microsoft.SharePoint.Powershell’}

if ($snapin -eq $null)


Write-Host “Loading SharePoint Powershell Snap-in”

Add-PSSnapin “Microsoft.SharePoint.Powershell”


#Loop through the web application and do a backup of each Site

Get-SPWebApplication | Get-SPSite | Get-SPWeb -Limit All | ForEach-Object{$FilePath = “C:\Backups\” + $_.Url.Replace(“http://”,””).Replace(“/”,”-“) + “.bak” ;

Export-SPWeb -Identity $_.Url -Path $FilePath -Force -NoFileCompression}

Categories: PowerShell, SharePoint

Remove Orphan Service Applications in SharePoint 2010

February 4, 2011 Leave a comment

I found this excellent blog ( to remove orphan service applications in SharePoint.

I had an orphan Search Service Application with no database lingering in Central Administration. With the help of this blog I was able to remove it.


Categories: SharePoint Tags: