powershell 从SharePoint场下载所有SharePoint wsp解决方案。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 从SharePoint场下载所有SharePoint wsp解决方案。相关的知识,希望对你有一定的参考价值。
# ----------------------------------------------
# Author: Romain Blanchard
# Date: 10.04.2013
# Description: Download all SharePoint wsp solutions from SharePoint farm.
# ----------------------------------------------
# -- Initialize -- #
Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue
# -- Options -- #
$dirName = "C:\ExportedSolutions"
# -- Script -- #
Write-Host Exporting solutions to $dirName
foreach ($solution in Get-SPSolution)
{
$id = $Solution.SolutionID
$title = $Solution.Name
$filename = $Solution.SolutionFile.Name
Write-Host "Exporting ‘$title’ to …\$filename" -nonewline
try {
$solution.SolutionFile.SaveAs("$dirName\$filename")
Write-Host " – done" -foreground green
}
catch
{
Write-Host " – error : $_" -foreground red
}
}
以上是关于powershell 从SharePoint场下载所有SharePoint wsp解决方案。的主要内容,如果未能解决你的问题,请参考以下文章
Powershell从SharePoint文档库中删除文件
powershell Powershell SharePoint下载库中的所有文件。
powershell 此脚本将下载所有SharePoint 2013必备文件。
Powershell PnP - 在线登录 Sharepoint 并下载文件
从 SharePoint 2010 获取场功能
使用PowerShell读取SharePoint里列表的内容