Tue. Jun 7th, 2022

QuickLaunch

Remove List from Quick Launch (PnP)

Function RemoveListfromQuickLaunch { param( [Parameter(Mandatory = $true)][string]$ListName ) try { $dst_ctx = New-Object Microsoft.SharePoint.Client.ClientContext($row.dstUrl) $dst_creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($dst_username,$spopassword) $dst_ctx.Credentials = $dst_creds $dst_web = $dst_ctx.Web $dst_ctx.Load($dst_web) $dst_ctx.ExecuteQuery(); $OnQuickLaunch = $False #Get…

This website uses cookies. By continuing to use this site, you accept our use of cookies.