r/PowerShell • u/O365-Zende • Jun 25 '26
Solved Try to set the Org SharePoint Sharing Link Retention
As per title really I want to set a few values for these settings
Set-SPOTenant -CoreOrganizationSharingLinkMaxExpirationInDays 365
Set-SPOTenant -OneDriveOrganizationSharingLinkMaxExpirationInDays 365
And a couple for Link recommendations as an example.
So I'm not sure if it's possible with PNP.
- 3) Also If I use Get-SPOTenant and Get-PNPTenant are they settings the same?
Im very amateur at code, so quite possibly I'm doing it wrong.
Thoughts?
EDIT: This is now fixed in the PNP Nightly Builds after reporting it
0
Upvotes
4
u/purplemonkeymad Jun 25 '26
Make sure you've followed the Getting up and running section.
According to the docs, it should have those parameters. So you'll need to post those errors in full for us to see what the issue is.
1
u/BlackV Jun 25 '26
Want to hijack (and/or add to) this topic a little
What is everyone settings for sensible values here ? days/months/years ?