Get SPWeb Object from the URL
PowerShell Snap-in for SharePoint 2010 offers Get-SPWeb cmdlet to get SPWeb Object directly from the given web URL. But when writing .Net code in C# (or in PowerShell with MOSS 2007) SharePoint object model doesn’t offer this mechanism. However there is a Trick to get SPWeb Object from given URL: Get the…
Read more