Posts

Showing posts from August, 2014

Get list of sites from SharePoint content database

 This command will get the list of sites from the content Database. $db = Get-SPContentdatabase "sql_test_db_name"  $db.sites

Delete Document Library using SharePoint Power Shell Script

$SiteUrl = "http://SP:2010/sites/TestSite" $web = Get-SPWeb $SiteUrl   $library = $web.lists["Shared Documents"] $library.AllowDeletion = $True $library.update() $library.Delete()