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

Cannot write "property" #197

Closed Holraven closed 3 years ago

Holraven commented 3 years ago

When trying to run BlockDownloadOfAllFilesForGuests.ps1:

Exception calling "ExecuteQuery" with "0" argument(s): "Oppdatering av denne tenantegenskapen er for øyeblikket deaktiv
ert."
At (...):25 char:3
+   $ctx.ExecuteQuery()
+   ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ServerException

Roughly translated to "updating this tenant property is deactivated for the time being" (GOD how I wish I could override the language setting). Anything else that need to be enabled on the tenant first?

PowershellScripts commented 3 years ago

Not that I can think of.

It looks like there might have been some change in design: https://sharepoint.uservoice.com/forums/330318-sharepoint-administration/suggestions/33755590-blockdownloadofallfilesforguests

and according to Ron and his support ticket, it may have stopped working by design

PowershellScripts commented 3 years ago

I assume my last comment solved the issue and closing this.