Problem: When trying to run a PowerShell cmdlet, I got this error message: “The requested operation is part of an experimental feature that is not supported in the current environment.” SharePoint shows this error if a new feature is not yet rolled out for your tenant.
The error can occur when attempting to run a PowerShell command or script that uses an experimental feature that is not currently supported in your environment. To fix this error, you must set the release preference for your Microsoft 365 environment. (Or modify the script or command to remove or replace the experimental feature!). As a first step, check your SharePoint Online version and the documentation for the PowerShell cmdlet you are running to see if it’s included with your current environment.
Set the release preference in Office 365
Log in to your Microsoft 365 Admin center as Global Administrator and follow these steps to set the release preference:
- Go to your Office 365 Admin Center >> Click on “Settings” from left navigation >> Click on “Organization Profile”.
- Click the “Edit” button on the Organization profile page next to “Release Preferences”.
- Change the release preference to “Targeted release for everyone” and confirm the prompt on the next page.
You may need to wait for some time for the changes to take effect! Don’t forget to Update the SharePoint Online PowerShell Module to get the latest features and cmdlets.