帮助Sharepoint添加带有预填充信息的自定义页面 [英] Help with Sharepoint adding a custom page with prepopulated info
本文介绍了帮助Sharepoint添加带有预填充信息的自定义页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐答案
对于此要求,我建议您将PowerShell与CSOM一起使用来创建站点,以便可以创建配置文件并遍历配置文件并创建站点.
示例代码:
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Publishing.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
用户名=读主机提示请输入您的用户名"
Username = Read-Host -Prompt "Please enter your username"
密码=读主机提示请输入您的密码" -AsSecureString
Password = Read-Host -Prompt "Please enter your password" -AsSecureString
这篇关于帮助Sharepoint添加带有预填充信息的自定义页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文