PowershellScripts / SharePointOnline-ScriptSamples

Over 260 scripts for SharePoint Online (SPO), OneDrive for Business, and SharePoint Server. The samples fix issues, provide reports and extra settings not available via UI. The scripts use Powershell, C#, CSOM and REST. They include copies of existing scripts from Technet Gallery years 2013-2019. >>> Scroll down to see the full index
100 stars 37 forks source link

issue in Set all lists to New #199

Closed Aysan-kore closed 2 years ago

Aysan-kore commented 3 years ago

Hi, we used the SetExperience.ps1 that was provided to set the experience for lists located in a subsite to classic; for instance here is the URL we used $Url="https://Companyname.sharepoint.com/Subsitename

But the script reset the default experience for all list on the main site and all subsites to Classic

PowershellScripts commented 3 years ago

Hi Aysan-kore,

The script https://github.com/PowershellScripts/SharePointOnline-ScriptSamples/blob/develop/Lists%20and%20Libraries%20Management/Modern%20or%20Classic/Set%20all%20lists%20to%20New%20or%20Classic%20Experience/SetExperience.ps1

targets lists in a specific website. It sets the experience per list basis. It does not have access to other sites.

For better overview I added a line: Write-Host $ll.Title

so that you can see which list will modify the setting next.

If you meant a different script, please let me know

PowershellScripts commented 2 years ago

No activity - closing