使用PowerShell将文件上载到SharePoint上 [英] Using PowerShell to Upload Files to SharePoint On Premise
本文介绍了使用PowerShell将文件上载到SharePoint上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现脚本详细说明了如何将包含元数据的文件下载和上传到SharePoint Online,但我找不到使用SharePoint 2010内部部署网站执行相同操作的方法。
有人可以告诉我如何编写可用于将文件和元数据下载并上传到SharePoint 2010内部部署网站的脚本吗?
解决方案
您好,
在SharePoint 2010内部,我们可以使用PowerShell实现服务器对象模型来实现它。
function UploadFileInLibrary
{
[CmdletBinding()]
Param(
[参数(强制=) / blockquote>
true,ValueFromPipeline =
true)]
[string]
I've found scripts detailing how to download and upload files with metadata to SharePoint Online but I can't find a way to do the same with a SharePoint 2010 On-Premise site.
Can someone please tell me how to write a script that can be used to download and upload files, along with metadata, to a SharePoint 2010 On Premise site?
解决方案Hi,
In SharePoint 2010 on premise, we can use Server Object Model with PowerShell to achieve it.
function UploadFileInLibrary { [CmdletBinding()] Param( [Parameter(Mandatory=
true,ValueFromPipeline=
true)] [string]
这篇关于使用PowerShell将文件上载到SharePoint上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文