A few days ago, Microsoft released a new version of their SharePoint Online Management Shell (the PowerShell cmdlets that can be used to manage SharePoint Online). In this blog post, I will briefly explain what was changed and what you can do now with the new options. Note: The new internal version number for the cmdlets is : 15.0.4569.1506

Sites

The first new attribute that is available is for Site Collections and is called SharingCapability. Basically, this attribute tells you if sharing has been enabled for a site collection or not. The three possible values are Disabled, ExternalUserSharingOnly, and ExternalUserAndGuestSharing (see also http://msdn.microsoft.com/en-us/library/microsoft.online.sharepoint.tenantmanagement.sharingcapabilities(v=office.15).aspx)

When you run Get-SPOSite  | select Url, SharingCapability you’ll get a list of all site collections and the corresponding Sharing Capability.
spocmdlets1

You can also set the values, so if you want to enable sharing for a site collection for authenticated users only, run Set-SPOSite -Identity <YourSiteUrl> -SharingCapability ExternalUserSharingOnly:
spocmdlets2

Tenant

For tenants, there are three new attributes: DisplayStartASiteOptionSharingCapabilityStartASiteFormUrl

You can get the current settings by simply running Get-SPOTenant:
 spocmdlets3

SharingCapability simply shows you which settings have been set for your tenant in general.

DisplayStartASiteOption and StartASiteFormUrl can help you with allowing users to create new site collections, and which form to use. For example, there’s a sample app from Richard diZerega from Microsoft that you could customise for this purpose.

DisplayStartASiteOption controls if the “new site” link is available when you click on Websites in the Ribbon. If it’s deactivated, you don’t get to see such an option:
spocmdlets6

Turning it on (Set-SPOTenant -DisplayStartASiteOption $true) will provide you with the link:
spocmdlets9

If you don’t want to use the default form, you can then also specifiy your custom form via Set-SPOTenant -StartASiteFormUrl  <FormUrl>.

Please note that these two options are also available through the UI.  These two options can be found in the SharePoint Admin Center under Settings:
spocmdlets11

If DisplayStartASiteOption  is set to false, “Hide the link” is activated for Start a Site:

spocmdlets7

Setting it to true, “Show the link” becomes active:

spocmdlets8

Lastly, if you set a URL for StartASiteFormUrl, the corresponding field is set:

spocmdlets10

 External Users

The last changes in the new version of the cmdlets offer a few new attributes for external users: InvitedByWhenCreatedAcceptedAs

When you run Get-SPOExternalUser, you can see who invited the external user, when he accepted, and with which email address:
spocmdlets4

Additionally, you also have the option to get the external users of a single site collection only, and not the whole tenant, by running Get-SPOExternalUser with the -SiteURL parameter:
spocmdlets5

 

19 thoughts on “New options in the SharePoint Online Management Shell PowerShell cmdlets”

  1. Hi,

    the download only contains the 64 bit version, I need the 32 bit version, do you know where I can get it?

    regards

    Terry

    1. Hi Terry, I just asked for feedback regarding this. The 32 bit version is still mentioned under “Install Instructions” on the download page, but the file itself must have been removed sometime. I don’t have a current download link for it. Will post an update here again once I know more

  2. After checking out a few of the articles on your blog, I really like your way of blogging.
    I saved it to my bookmark site list and will be checking back soon. Take a look at my
    website too and let me know what you think.

Leave a Reply to @sho_akky Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.