Author Archives: bobeldredge

Copy Files from SharePoint Library Folder to Another SharePoint Library Folder

$varSourceWebUrl=”http://team/sites/teamsite1″ $varTargetWebUrl=”http://team/sites/teamsite2″ $varSourceLibraryName = “Shared Documents” $varTargetLibraryName = “Shared Documents” $varSourceFolderUrl = “http://team/sites/teamsite1/Shared Documents/Subfolder/” $varTargetParentFolderUrl = “http://team/sites/teamsite2/Shared Documents” $varSourceWeb = Get-SPWeb $varSourceWebUrl $varTargetWeb = Get-SPWeb $varTargetWebUrl $varSourceLibrary = $varSourceWeb.Lists[$varSourceLibraryName] $varTargetLibrary = $varTargetWeb.Lists[$varTargetLibraryName] $varSourceFolder = $varSourceWeb.GetFolder($varSourceFolderUrl) $varTargetFolder = $varTargetWeb.GetFolder($varTargetFolderUrl) $varTargetFolderParent = … Continue reading

Posted in PowerShell, SharePoint 2010, SharePoint Library | Leave a comment

SharePoint Content Database Report using Powershell

#Enter a URL in the function at the bottom of this script Example: Report-SharePointDatabase -ReportURL “http://team/sites/reports” #The first time you run the script, the script will create a custom list with the report fields in a datasheet view #Each subsequent … Continue reading

Posted in PowerShell, SharePoint 2010 | Tagged , , | Leave a comment

SharePoint – PowerShell – Export List Data from a view to CSV and Save in a SharePoint Library

I really like this script.  You create a view in the SharePoint UI with the fields you want, filters, etc., (Script does not include sorting) and it will export that data to a CSV file and save it on your … Continue reading

Posted in PowerShell, SharePoint 2010 | Tagged , , , , | 2 Comments

PowerShell – Copy Current Navigation from SharePoint Site to another SharePoint Site

Very Handy! Use this in a content migration scenario, or updating many sites with the same navigation. $sourcewebURL = “http://teams/sites/teamsiteA” $targetwebURL = “http://teams/sites/teamsiteB” $find = “/teamsiteA/” $replace = “/teamsiteB/” $targetweb = get-spweb $targetwebURL $sourceweb = get-spweb $sourcewebURL $targetpub = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($targetweb) … Continue reading

Posted in Uncategorized | 4 Comments

SharePoint and Large Lists – some tips!

SharePoint is a framework. As such, it’s generic. Many times you need a site to be stretched to fulfill a specific mission – and in many cases, this involves large lists with a high quantity of columns. You really have … Continue reading

Posted in Uncategorized | Leave a comment

Thoughts…

Just needed to write – ever have moment when life just reaches out and spins you around? Complete disorientation! Old programs that were dormant, kick in and start running. Where did that code come from? It’s a mix of panic, … Continue reading

Posted in Uncategorized | Leave a comment

SharePoint – need more Date/Time Fields

Sometimes you have to break glass. You don’t want to, but you don’t have any other option. What to do when you need to add more field types (such as Date/Time) to a SharePoint list? When necessary, you can let … Continue reading

Posted in Uncategorized | Leave a comment