Powershell for Sharepoint在线 [英] Powershell for Sharepoint Online

查看:75
本文介绍了Powershell for Sharepoint在线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以为我指出Powershell脚本的正确方向,以用于站点共享和在线Sharepoint列表复制.在pnp powershell中使用有限的命令集,看来csom是必需的,我想知道是否有人以前这样做过.

Can anyone point me in right direction for powershell script for site copy and list copy in sharepoint online. With limited set of commands in pnp powershell it looks like csom is necessary and i was wondering if anyone has done this before.

谢谢

推荐答案

嗨Naveen

Hi Naveen

在网站副本和列表副本中,您是说要包括列表项,文档等吗??

In the site copy and list copy, do you mean to include list items, documents, etc..?

可以使用第三方工具,例如Metalogix的Content Matrix或ShareGate.

Third party tools can be used like Content Matrix by Metalogix or ShareGate.

如果仅需要复制列表架构,请参阅我的文章将列表导出为架构XML   使用CSOM以XML格式从架构创建列表库. 从源列表到目标的数据可以使用自定义代码移动列表以保留元数据. 

If list schema needs to be copied only, refer to my post Export Lists as Schema XML and Create Lists Libraries from Schema as XML using CSOM. The data from source list to target list can be moved using come custom code to preserve metadata. 

类似地,您可以使用PnP cmdlet导出站点配置和导入站点配置 Get‑PnPProvisioningTemplate Apply‑PnPProvisioningTemplate .

Similarly you can export site configuration and import site configuration using PnP cmdlet Get‑PnPProvisioningTemplate and Apply‑PnPProvisioningTemplate.

似乎您可以使用PnP cmdlet包括列表数据 添加‑PnPDataRowsToProvisioningTemplate, ,但是我没有亲自尝试过.

It seems you can include list data using the PnP cmdlet Add‑PnPDataRowsToProvisioningTemplate, however I have not tried it personally.

让我们知道您的生活.

祝你好运

Reshmee


这篇关于Powershell for Sharepoint在线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆