File share to sharepoint



centercenterSriram Balasharepoint practice?? file share to sharepoint8820090900Sriram Balasharepoint practice?? file share to sharepointTable of Contents TOC \o "1-3" \h \z 1.File Share POC Activity PAGEREF _Toc393018634 \h 21.1Planned POC Activities PAGEREF _Toc393018635 \h 21.2Actual POC Activities PAGEREF _Toc393018636 \h 21.2.1PowerShell Scripts Installation PAGEREF _Toc393018637 \h 21.2.2PowerShell Scripts User Guide PAGEREF _Toc393018638 \h 21.2.3Home Drive mapping to My Site PAGEREF _Toc393018639 \h 31.2.4Department Drive mapping to TeamSite PAGEREF _Toc393018640 \h 41.2.5Few Observations during File Share migration PAGEREF _Toc393018641 \h 51.2.6Analysis on the above Observations (Using PowerShell Scripts) PAGEREF _Toc393018642 \h 5File Share POC ActivityPlanned POC Activities Using SharePoint 2013 PowerShell scriptsActual POC ActivitiesPowerShell Scripts InstallationGo to the FilesUploadToSPLibrary.ps1 script to a location on your hard disk. Start the SharePoint 2013 Management Shell or Windows PowerShell ISE from the start menu.Type “. “(to clarify, that is [dot][space]) followed by the full path to the script file from step 1 – e.g. D:\FilesUploadToSPLibrary.ps1 – and hit RETURN. You should receive the message “SharePoint 2013 Multiple File Upload Script”.PowerShell Scripts User GuideUse the SharePoint 2013 Multiple File Upload Script by typing the Copy-FilesToSP command in the PowerShell console interface. This command includes a number of parameters and switches to provide the various features available from the script. The table below lists each parameter available:Parameter Description Example LocalPath (mandatory) The local or network (UNC) path of the file or files to be uploaded to SharePoint “\\vs2-ALPFC2\bkcusers1\51881”SiteUrl (mandatory) The URL of the site in SharePoint where the files will be uploaded “”Library (mandatory) The display name of the document library in SharePoint where the files will be uploaded “Documents” LibraryStartFolder (optional) The document library folder into which the files will be uploaded. The root folder will be used if the LibraryStartFolder parameter is not specified “/Folder/Subfolder” IncludeSubFolders (optional) Copy files from the root folder and all subfolders in the local or network path specified. If this parameter is not specified, files will be copied from the root folder only. N/A Overwrite (optional) Overwrite any files found in the document library with the same name. If this parameter is not specified, the script will not overwrite files by default. N/A FlattenStructure (optional) Merge sub-folders from the local or network path specified to a single location in the document library. If this parameter is not specified, the script will replicate the folder structure from the source folder into the document library. N/A Home Drive mapping to My SiteThe below screen shows the Folders/ Files of \\vs2-ALPFC2\bkcusers1\51881 in FileShare legacy system:The following command will upload all folders/files from “\\vs2-ALPFC2\bkcusers1\51881” to the document library “Documents” in the site with same structure and same Meta data.Copy-FilestoSP -LocalPath "\\vs2-ALPFC2\bkcusers1\51881" -SiteUrl “" -Library "Documents" -IncludeSubFolders –OverwriteAs a result of this command, the document library will contain an exact replica of the folderStructure and files contained in the \\vs2-ALPFC2\bkcusers1\51881 structure defined above.Department Drive mapping to TeamSiteThe below screen shows the Folders/ Files of \\vs2-ALPFC2\bkciDM in FileShare legacy system:Same as above steps DepartmentDrive FileShare (bkcIDM) mapped as follows:The following command will upload all folders/files from \\vs2-ALPFC2\bkciDM to the document library “bkciDM” in the site with same folders structure from fileshare legacy system. Copy-FilestoSP -LocalPath " \\vs2-ALPFC1\bkciDM " -SiteUrl “" -Library "bkciDM" -IncludeSubFolders –OverwriteAs a result of this command, the document library will contain an exact replica of the folder Structure and files contained in the \\vs2-ALPFC1\bkciDM structure defined above.Few Observations during File Share migrationPowerShell scripts should be installed on target environment to connect the SharePoint site in writable mode.Migration was failed for items which are required admin access.Content Database level access is required to execute the PowerShell scripts for FileShare migration into SharePoint environment.Analysis on the above Observations (Using PowerShell Scripts)Read-only access is not sufficient enough for migrating the content completely. Admin access is required for complete migration. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download