SharePoint 2016 May 2019 Updates

The SharePoint 2016 May 2019 Updates have been released.

Product KB Article
SharePoint Server 2016 (sts-x-none) https://support.microsoft.com/help/4464549
Office Online Server https://support.microsoft.com/help/4462169
Office Updates https://support.microsoft.com/help/4501270

For all SharePoint updates, visit SharePoint Updates.

Enabling Anonymous Share Links in SharePoint Server 2019

SharePoint Server 2019 does not support anonymous sharing links (aka guest links). However, it only takes four lines of PowerShell to implement. In addition, you get link expiration. This configuration does require Office Online Server as the guest sharing links leverage the web-based Office viewer/editor. Keep in mind, this isn’t a supported configuration by Microsoft.

To enable this feature, run the following PowerShell from the SharePoint Management Shell:

$farm = Get-SPFarm
$farm.Properties.Add("GuestSharingEnabled",$true)
$farm.Properties.Add("SPO-GuestSharingUIEnabled",$true)
$farm.Update()

When we visit a modern Document Library, we can now select the ‘Anyone’ option with link expiration:

anon-share.png

This yields a URL similar to the following:

https://devsp07.cobaltatom.com/sites/team/_layouts/15/guestaccess.aspx?guestaccesstoken=sn%2F%2FbPXsO9UB8ot8LpLUEoXYxawDnQsipOl34Q%2Fj8f8%3D&docid=1f71e8af92a384035b00ebcb2bc322f4a&rev=1&expiration=2019-05-08T07%3A00%3A00.000Z&e=OCqpdW

We can then see that a link is available with a set expiration:

anon-link.png

However you get the link to the end user (copy link or email), here is what the recipient sees (after enabling editing):

anon-edit.png

Finally, when the link expires should you choose that option, this is what the recipient sees:

anon-expire.png

And again, this is unsupported by Microsoft. After experimenting, you can disable this functionality by running the below cmdlets.

$farm = Get-SPFarm
$farm.Properties.Remove("GuestSharingEnabled")
$farm.Properties.Remove("SPO-GuestSharingUIEnabled")
$farm.Update()

Disable Teams Creation Prompt in SharePoint Online

Have you seen this lately? It appears to any Office 365 Group owner where a Team has not been associated with a SharePoint Online site.

CreateTeamInSPO

There’s a simple method to disable it. Using the SharePoint Online PnP cmdlets, run the following cmdlet.

$tenant = "https://tenant-admin.sharepoint.com"
$web = "https://tenant.sharepoint.com/sites/ModernTeam"

Connect-PnPOnline -Url $tenant -SPOManagementShell
$site = Get-PnPTenantSite -Detailed -Url $web
if ($site.DenyAddAndCustomizePages -ne 'Disabled') {
    $site.DenyAddAndCustomizePages = 'Disabled'
    $site.Update()
    $site.Context.ExecuteQuery()
}

Set-PnPPropertyBagValue -Key 'TeamifyHidden' -Value 'True'

The first portion of the above script verifies that DenyAndAddCustomizePages is disabled on the site. This enables us to set a property bag value of TeamifyHidden to true. If you refresh the homepage after setting the value, the dialog box to create Teams should no longer appear.

At the time of writing, there is no method to disable this tenant-wide. It must be disabled on a Site Collection by Site Collection basis.

SharePoint 2019 April 2019 Updates

The SharePoint 2019 April 2019 Updates have been released.

Product KB Article
SharePoint Server 2019 (sts-x-none) https://support.microsoft.com/help/4464518
SharePoint Server 2019 (wssmui) https://support.microsoft.com/help/4462221
Office Updates https://support.microsoft.com/help/4495300

For all SharePoint updates, visit SharePoint Updates.

SharePoint 2016 April 2019 Updates

The SharePoint 2016 April 2019 Updates have been released.

Product KB Article
SharePoint Server 2016 (sts-x-none) https://support.microsoft.com/help/4464510
SharePoint Server 2016 (wssmui) https://support.microsoft.com/help/4461507
Office Updates https://support.microsoft.com/help/4495300

For all SharePoint updates, visit SharePoint Updates.