如何使用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
}
谢谢您的帮助