ĐÀO TẠO DOANH NGHIỆP : SỞ KHOA HỌC CÔNG NGHỆ TỈNH ĐỒNG NAI

ENTERPRISE TRAINING: DONG NAI DEPARTMENT OF SCIENCE AND TECHNOLOGY.

123

Thursday, September 24, 2015

export and import lists and libraries full version and permission

How to export and import lists and libraries full version and permission Exporting# specify the site URL to export$web = Get-SPWeb "microsofttechnology.net/sites/sharepoint"# specify output folder to store exported lists$path = "D:\SharepointLists"foreach($list in $web.lists){"Exporting " + $list.RootFolder.URLexport-spweb $web.URL -ItemUrl $list.RootFolder.URL -IncludeUserSecurity -IncludeVersions All -path ($path + $list + ".cmp")}Importing # specify target SharePoint site to import into$site = "microsofttechnology.net/sites/sharepoint1"#...