SharePoint Online: How to Apply Site Policy using PowerShell?

Requirement: Apply site policy in SharePoint Online using PowerShell. How to Apply SharePoint Online Site Policy using PowerShell? Site Policies is a great way to implement governance in SharePoint Online. As of today, we can’t create a new site policy through PowerShell! However, we can save time by creating a site policy…

Read more

SharePoint Online: How to Replace Classic Root Site Collection with a Modern Site?

Requirement: Convert SharePoint Online Root site collection from classic to modern site! Our requirement is, We built a new Intranet based on a Modern SharePoint Communication site and want to swap it into the root site. How to change the root site from classic to modern experience? As SharePoint Online root site…

Read more

Connect to SharePoint Online using PowerShell with MFA (Multi-factor Authentication)

Requirement: Connect to SharePoint Online from PowerShell using multi-factor authentication. PowerShell to Connect to SharePoint Online with MFA Multi-Factor Authentication or two-factor authentication in Office 365 environments is often enabled as part of security hardening. Instead of typical user IDs and passwords, it adds an extra layer with SMS or phone call…

Read more

Find out Who has Deleted a Site Collection in SharePoint

Requirement: Find out who has deleted a site collection in SharePoint 2016. How to Find Who Deleted a SharePoint Site? Unfortunately, there are no direct ways to find out who deleted a SharePoint site. The PowerShell cmdlet “Get-SPDeletedSite” gets you all deleted site collections, without any hint about the user who deleted…

Read more

SharePoint Online: Find All Unused Sites based on Last Modified Date

Requirement: Get All Unused SharePoint Online Sites How to Find the Last Modified Date of SharePoint Online Site Collections? The modern SharePoint Online Admin center gives a neat view of all sites in the tenant along with the “Last Activity (UTC)” column that gives a date value when List Items or Files…

Read more

Office 365: Get OneDrive for Business Usage Report using PowerShell

Requirement: Get OneDrive for business usage report using PowerShell How to Check the OneDrive for Business Usage for a User in Office 365? OneDrive for Business is Microsoft’s cloud-based storage solution that lets you store and work on files that are personal to you. It’s similar to any other document library in SharePoint…

Read more

OneDrive for Business: How to Remove Site Collection Administrator?

Requirement: Remove user from OneDrive for Business Administrator. How to Remove User from OneDrive for Business Site Collection? If you are a site collection admin to a OneDrive site, You can do the following to remove a user from the site collection admin list. Login to the target OneDrive for business site…

Read more

OneDrive for Business: How to Increase Storage Quota for a User?

Requirement: Increase OneDrive for Business Storage Quota using PowerShell. How to Increase OneDrive for Business Storage for One User? The storage quota allocated to each user’s OneDrive for Business site depends on your Microsoft 365 subscription plan. Say for e.g. if you have plans like “Office 365 Enterprise E3”, your licensed users…

Read more