Forum Discussion
blue_man
Jan 26, 2022Iron Contributor
Set-SPOTenant : The operation has timed out and Set-SPOSite : The remote server returned an error: (
I am trying to run the below command but I get the below error: ,(Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'") | Set-SPOTenant -Conditiona...
Jan 26, 2022
On the first script example, you should have Set-SPOSite instead of Set-SPOTenant.
When 429 error is returned, your calls are being throttled. Adding some delay between calls might help in that case.
When 429 error is returned, your calls are being throttled. Adding some delay between calls might help in that case.
- blue_manJan 26, 2022Iron ContributorNo that does not seem to work either
,(Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'") | Set-SPOSite -ConditionalAccessPolicy AllowLimitedAccess
Set-SPOSite : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input. - blue_manJan 26, 2022Iron ContributorOk thanks blame MS documentation then : ) I just tested using that.
https://docs.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices
Will test it with Set-SPOSite then and revert back.