Am I correct in noticing that all default Site Assets libraries can still be set on 'No versioning' like it used to be for normal libraries?

Is there a way with powershell or similar to turn to 'no versioning' for selected libraries?


Yes, it is indeed possible.

You can use Set-PnPList to change it to No versioning.

Connect-PnPOnline -Url "https://tenant.sharepoint.com/sites/testSiteCollection"
Set-PnPList -Identity "Site Assets" -EnableVersioning:$false
| improve this answer | |
  • Correct me if I am wrong: This command will only turn the versioning off and not make the 'no versioning' option tick visible in the gui? – susan Mar 1 '19 at 10:31
  • it will select the radio button for no versioning. You can check it by going to List/library settings > Versioning settings. – Gautam Sheth Mar 1 '19 at 10:50
  • The radio button normally isnt there, so you mean that it will magically appear? – susan Mar 1 '19 at 11:11
  • That's strange, i checked in my SPO first release tenant's Site Assets library. It is indeed there, check this image – Gautam Sheth Mar 1 '19 at 11:15
  • in your code, Identity is the name of library? by chance is there another code to free up the minimum number of versions (lets say from 100 to 10)? – susan Mar 1 '19 at 12:36

My "Site Assets" libraries, both on-prem and O365 have major versions enabled by default.

Create major versions

There are a couple of properties that you can tweak to configure versioning:





List members

If you're looking for disabling versioning, the line you are looking for is:

$list.EnableVersioning = $false

More here:

Enable versioning on document libraries excluding some

| improve this answer | |
  • I have looked in a site assets library of a sharepoint tenancy born in 2018 and I could turn off versioning for it (which makes sense, you do not need versioning in the site assets). If it is an improvement by microsoft I am happy – susan Mar 1 '19 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.