使用PowerShell批准SharePoint Online文档库中的所有项目

时间:2018-11-28 15:29:18

标签: powershell sharepoint sharepoint-online

如何使用Power Shell批准SharePoint Online文档库中的所有项目?

Connect-SPOService -Url "https://wienmoki-admin.sharepoint.com" -Credential $credentials

#Retrieve the site collection

$site = GET-SPOSite -Identity "https://wienmoki.sharepoint.com/sites/MOKI"

Connect-PnPOnline -Url $site.Url -Credentials $credentials

$web = Get-PnPWeb
$ctx = Get-PnPContext

$list = Get-PnPListItem -List "IT"
foreach($item in $list.Id)
{
    #Approve item
}

谢谢您的帮助

0 个答案:

没有答案