导出用户和组并导入到另一个站点 [英] Export users and groups and import to another site

查看:53
本文介绍了导出用户和组并导入到另一个站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Powershell从一个站点导出用户和组并将其导入到另一个站点?

How to export users and groups from one site and import it to another site using Powershell ?

谢谢

推荐答案

我尝试了以下代码,但是标题选项卡显示在要导出的单个列中.我无法测试导入.

I tried the below code, but the heading tabs are showing in a single column for export. I was not able to test the import.

if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq


null){ Add-PSSnapin"Microsoft.SharePoint.PowerShell"; } 函数ExportUsers() {
null) { Add-PSSnapin "Microsoft.SharePoint.PowerShell" } function ExportUsers() {


URL =源URL"
URL="Source URL"


这篇关于导出用户和组并导入到另一个站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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