Office 365: Managing SharePoint Site Collections (Power Shell)

Get a list of available site templates

Create a new Site Collection
New-SPOSite -Url -Owner [email protected] -Template "STS#0" -Title "IT Site"

You will be prompted to enter the site storage quota. I entered 300.

How do we know this worked?

OR for more detail

Get-SPOSite -Identity -detailed | fl

To configure a site collection (i.e change settings)
Set-SPOSite -Identity -StorageQuota 750 -StorageQuotaWarningLevel 500

Delete or Restore a site collection
Remove-SPOSite -Identity -NoWait
Restore-SPODeletedSite -Identity -NoWait

How to disable SharePoint Online Access for a specific department in Office 365 using PowerShell

This PowerShell script will disable access to SharePoint online services for all HR department staff

Import-Module MSOnline
$cred = Get-Credential
Connect-MsolOnline -Cred $cred
$licence = New -MsolUserLicenceOptions -AccountSkuID "techshizz:STANDARDPACK"
Get-MsolUser -All -Department "HR" | Set-MsolUserLicence -LicenceOptions $Licence

IE11 Crashing when visiting a Sharepoint site

Event viewer displays the following faulting components:

"Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\WINDOWS\SYSTEM32\ucrtbase.dll"

IE will run OK while in "Safe Mode" (no Add-ons).


Add the share-point site the the Trusted Sites list in Internet Options. 

Integrating Information Rights Management in Office 365 with SharePoint



To have the ability to enable IRM you need to have the "Design" permission. (This is included in Global Admin)


There is only one global settings required to enable IRM in SharePoint. From the SharePoint Admin panel we need to enable IRM.


O365 Admin > Admin > SharePoint > Settings



Information Rights Services



Once this has been enabled, in site settings from within a SharePoint site (from the library tab in a SharePoint site you can create an IRM policy for the site.

Information Rights Services Settings



This policy prevents un-supported documents from being uploaded. When tested see the error below.



This library does not accept files of the given type