Category Archives: Powershell

Search-Based Global Navigation in SharePoint On-line

While migrating our Team Sites from SharePoint 2010 to SharePoint On-line we noticed that response time of the sites on SharePoint Online was significantly slower than SharePoint 2010. Researching it we discovered that the issue was caused by our use … Continue reading

Posted in Powershell, search, sharepoint, Uncategorized | Tagged | Leave a comment

Powershell Script to move documents between sitecollections with version history

##see https://shannonbray.wordpress.com/2010/06/26/moving-sharepoint-2007-sites-to-another-environment-with-powershell/ Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue [void][System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Deployment”) $fileName = “exportedWeb.cmp” $fileLocation = “c:export” $SourceSiteURL = “http://edmsqa.kznsands.local/sites/CP” $docid=“CPDOC-46-30” $DestinationSiteURL = “http://edmsqa.kznsands.local/sites/cpccold/” $DestinationWebName = “MPPProd” # need to add logic to use rootweb if this is null $DestinationLibraryName=‘Documents’ ##############################################The Export Script $SourceSite … Continue reading

Posted in Powershell, sharepoint, Uncategorized | Tagged | Leave a comment

Using SPPersistedObjects to store custom SharePoint Configuration Settings

SharePoint Applications can store configuration information in a many places (PropertyBags, lists, PersitedObjects, web.config ). PropertyBags and Lists are both stored in the Content Database, so when you copy your production environment down to QA environment, these settings come with … Continue reading

Posted in Powershell, sharepoint | Tagged , | Leave a comment