zettelkasten/OneNoteExport/Kommunikationstechnologie/Sharepoint/HOWTo's/46_Modern UI disable.md
Ralf Koop 5a108aa2b4 .
2023-08-25 23:29:11 +02:00

1.7 KiB

Modern UI disable

Donnerstag, 4. Juli 2019

12:23

 

To change disable / re-enable the modern user experience at the site collection level

Site Collection Level

Add-PSSnapin microsoft.sharepoint.powershell -ea 0

$site = Get-SPSite http://spwfe

#Disable modern Lists and libraies at the Site Collection Level

$featureguid = new-object System.Guid "E3540C7D-6BEA-403C-A224-1A12EAFEE4C4"

$site.Features.Add($featureguid, $true)

Re-enable the moden expirence at the site collection Level.

$featureguid = new-object System.Guid "E3540C7D-6BEA-403C-A224-1A12EAFEE4C4"

$site.Features.Remove($featureguid, $true)

To change disable / re-enable the modern user experience at the web level

Web Level

Add-PSSnapin microsoft.sharepoint.powershell -ea 0

$site = Get-SPWeb http://spwfe

Disable modern Lists and libraies at the Web Level.

$featureguid = new-object System.Guid "52E14B6F-B1BB-4969-B89B-C4FAA56745EF"

$site.Features.Add($featureguid, $true)

Re-enable the moden expirence at the Web Level

$featureguid = new-object System.Guid "52E14B6F-B1BB-4969-B89B-C4FAA56745EF"

$site.Features.Remove($featureguid, $true)

To change disable / re-enable the modern user experience at the library level

Add-PSSnapin microsoft.sharepoint.powershell -ea 0

$web = Get-SPWeb http://spwfe

$list = $web.Lists["Documents"]

Classic setting

$list.ListExperienceOptions = "ClassicExperience"

$list.Update()

Modern setting

$list.ListExperienceOptions = "NewExperience"

$list.Update()

User Default

$list.ListExperienceOptions = "Auto"

$list.Update()

 

Aus <https://blogs.technet.microsoft.com/mikelee/2018/11/21/how-to-disable-the-modern-experience-in-sharepoint-2019/>