Monthly Archives: July 2016

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