posts
This script adds a content type from the content type hub to the “Documents” library within a SharePoint site.
[string]$ClientId = "xxxxx" [string]$sitesFilesPath ="C:\Users\xx\Documents\scripts\HubSites.csv" [string]$CertPath = "C:\Users\xx\ertificates\ReshmeeCertPnP.pfx" [string]$TenantUrl = "https://contoso.sharepoint.com" $ContentTypes = @("Test Record", "Test 1 Record", "Document Set") [string]$TenantName = "contoso" $CertPassword = Read-Host "Please enter Certificate Password:" -AsSecureString [string]DocumentSetFeatureId = "3bae86a2-776d-499d-9db8-fa4cdc7884f8" #$csvPath = Join-Path $directorypath $sitesFiles $sites = Import-Csv -Path $sitesFilesPath if (-not $sites -or $sites.Count -eq 0) { write-host "No rows found in CSV: $sitesFilesPath" -BackgroundColor Red throw "Empty CSV.
posts
Get and Set Organisation links at Tenant and Site Level It has been a long awaited feature to set an expiry date on organisation sharing links
Get-PnPTenant | select-object CoreOrganizationSharingLinkMaxExpirationInDays, CoreOrganizationSharingLinkRecommendedExpirationInDays, RestrictResourceAccountAccess, EnforceRequestDigest, RestrictExternalSharingForAgents, AllowFileArchive, AllowFileArchiveOnNewSitesByDefault, EnableNotificationsSubscriptions
set-PnpTenant -RestrictExternalSharingForAgents $true -AllowFileArchive $true -AllowFileArchiveByDefault $true
WARNING: Failed to load 3 properties. Use -Verbose to see the details.
CoreOrganizationSharingLinkMaxExpirationInDays : 0 CoreOrganizationSharingLinkRecommendedExpirationInDays : 0 RestrictResourceAccountAccess : False EnforceRequestDigest : True RestrictExternalSharingForAgents : False AllowFileArchive : False AllowFileArchiveOnNewSitesByDefault : EnableNotificationsSubscriptions : False
posts
https://www.linkedin.com/posts/howdangrashid_microsoftai-powerplatform-copilotstudio-activity-7434145521402961920-JCuk?utm_source=share&utm_medium=member_desktop&rcm=ACoAAAPFiPoBIWB1aKfjibOBh_P3wQr2sdLHt8Q
https://developer.microsoft.com/en-us/reactor/events/26786/?wt.mc_id=meetup_26786_webpage_reactor
https://github.com/ankurkumarz/agentic-ai-knowledge-base
807b8f84-b788-4337-b773-b8e30349f392
https://res-foundry-0506.openai.azure.com/
JMC8Q~Qe2TVf~0.B6Lwgu9CGhRrppDoa-lwV0csa
Get-PnPTenant | select-object CoreOrganizationSharingLinkMaxExpirationInDays, CoreOrganizationSharingLinkRecommendedExpirationInDays, RestrictResourceAccountAccess, EnforceRequestDigest, RestrictExternalSharingForAgents, AllowFileArchive, AllowFileArchiveOnNewSitesByDefault, EnableNotificationsSubscriptions
set-PnpTenant -RestrictExternalSharingForAgents $true -AllowFileArchive $true -AllowFileArchiveByDefault $true
WARNING: Failed to load 3 properties. Use -Verbose to see the details.
CoreOrganizationSharingLinkMaxExpirationInDays : 0 CoreOrganizationSharingLinkRecommendedExpirationInDays : 0 RestrictResourceAccountAccess : False EnforceRequestDigest : True RestrictExternalSharingForAgents : False AllowFileArchive : False AllowFileArchiveOnNewSitesByDefault : EnableNotificationsSubscriptions : False
set-PnpTenant -CoreOrganizationSharingLinkRecommendedExpirationInDays 0 -CoreOrganizationSharingLinkMaxExpirationInDays 0 -RestrictResourceAccountAccess $false -RestrictExternalSharingForAgents $false -EnforceRequestDigest $true -AllowFileArchive $False -AllowFileArchiveOnNewSitesByDefault $false