Forum Discussion
reshmeeauckloo
Jan 29, 2024Brass Contributor
Unable to run set-sposite -Disablesharingfornonowners
Running the SPO PowerShell ```PowerShell $AdminSiteURL= "https://reshmeeauckloo-admin.sharepoint.com" $SiteURL= "https://reshmeeauckloo.sharepoint.com/sites/testclone2" #Connect to SharePoint O...
reshmeeauckloo
Jan 30, 2024Brass Contributor
Upgrading SPO PowerShell to the latest resolved the issue. I could reproduce the issue with both PnP PowerShell and SPO PowerShell. I could still reproduce the issue with PnP PowerShell.
ganeshsanap
Jan 30, 2024MVP
reshmeeauckloo Great, glad it worked using latest version of SPO PowerShell.
Maybe something changed in SharePoint backend which is not yet updated in PnP PowerShell command. So I will suggest you to raise a new issue at: PnP PowerShell Issues.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- reshmeeaucklooJan 30, 2024Brass ContributorYeah I did raise it with PnP PowerShell and we agreed it is something with SP CSOM and closed the ticket. I need to try it with the latest nightly build before raising it back again if it is still an issue. Thanks very much for your help on this ganeshsanap.