How to Force Classic Experience in SharePoint Server Subscription Edition
Question details
Administrators want to make the Classic Experience the default across their SharePoint environment and prevent users from switching back to the Modern Experience.

- Product
- SharePoint Server Subscription Edition
- Device & OS
- not provided
- Scenario
- Configuring the default user interface experience for SharePoint sites, lists, and document libraries.
- Observed behavior
- The environment currently uses a mixture of Classic and Modern Experiences, and users can manually toggle between the two interfaces.
Ensure you have SharePoint farm administrator privileges and access to the SharePoint Management Shell on your server to run the necessary scripts.
Set Classic Experience Using Server-Side PowerShell
Execute a server-side PowerShell script to iterate through document libraries and programmatically set their experience options to Classic.
Using the SharePoint Management Shell, administrators can force the classic UI on all visible document libraries within a specific web environment by updating the ListExperienceOptions property.
Log into your SharePoint server as an administrator and launch the SharePoint Management Shell.
Retrieve the target SharePoint web object by running the command: $web = Get-SPWeb "http://your-sharepoint-site-url"
Retrieve all visible document libraries by executing: $libraries = $web.Lists | Where-Object { $_.BaseType -eq "DocumentLibrary" -and $_.Hidden -ne "True" }
Run a foreach loop to update each library: foreach ($library in $libraries) { $library.ListExperienceOptions = "ClassicExperience"; $library.Update() }

Activate the Site Collection Feature
Enable the appropriate SharePoint site collection feature that disables the Modern list and library experience across the site.
Manage Your Documents Efficiently with WPS Office
While managing SharePoint server environments requires technical backend configurations, handling your actual documents shouldn't be difficult. WPS Office is a free, lightweight, and easy-to-use alternative to Microsoft Office, perfect for creating and editing files downloaded from your SharePoint libraries.
- 1. Download and Install: Download WPS Office for free from the official website and follow the quick installation prompt.
- 2. Open Your Files: Open your downloaded SharePoint documents directly within the WPS Office workspace.
- 3. Edit and Save: Edit your documents seamlessly and save them in standard Microsoft Office formats for perfect compatibility.

Frequently Asked Questions
Will this PowerShell script affect hidden system libraries?
No, the provided PowerShell script specifically filters out hidden libraries by checking that the 'Hidden' property is not equal to 'True'. It only affects visible document libraries.
How can I prevent users from clicking 'Exit classic experience'?
To completely prevent users from switching back to the Modern Experience, you may need to implement custom CSS injections or deploy a specific administrative policy to hide the 'Exit classic experience' link from the user interface.
Can I revert a document library back to the Modern Experience?
Yes, you can easily revert the changes by running the same PowerShell script and changing the 'ListExperienceOptions' value from 'ClassicExperience' to 'NewExperience' or 'Auto'.




