SharePoint Online: Get Document Library Size using PowerShell

Requirement: Get the Size of a SharePoint Online Document Library How to Check SharePoint Online Document Library Size? To get a Document library size, do the following:  Login to your SharePoint Online site >> Click on Settings >> Site Settings Click on “Storage Metrics” under “Site Collection Administration” The storage metrics page…

Read more

SharePoint Online: How to Publish a File using PowerShell?

Requirement: Publish a Document in SharePoint Online How to Publish a File in SharePoint Online? When you enabled minor versions (or drafts) in SharePoint Online, all changes to any document isn’t available to users with read-only permissions, until it’s published. Published documents become major versions such as 1.0. Here is how to…

Read more

SharePoint Online: PowerShell to Get List URL

Requirement: PowerShell to Get SharePoint Online List URL SharePoint Online PowerShell to Get List URL Here is how to get list URL in SharePoint Online with PowerShell: PnP PowerShell to Get the absolute URL of a List in SharePoint Online We can obtain the Full URL of a list or library in…

Read more

SharePoint Online: Delete All Files in a Document Library using PowerShell

Requirement: Delete all documents in library in SharePoint Online How to Delete All Documents in Library in SharePoint Online? At times, you may want to delete multiple documents all at once. You can delete multiple files, folders, and sub-folders from a SharePoint Online document library in a few clicks: Navigate to your…

Read more

SharePoint Online: Delete Version History using PnP PowerShell

Requirement: Delete version history in SharePoint Online. How to Delete versions in SharePoint Online? To delete previous versions of a file in SharePoint Online, follow these steps: Navigate to your SharePoint Online document library, select the file and then click on “Version History” from the toolbar. (or Select “Version History” from the…

Read more

SharePoint Online: Start Workflow on All Items in a List using PowerShell

Requirement: Run Workflow in SharePoint Online using PowerShell SharePoint Online: PowerShell to Start Workflow This PowerShell script starts given workflow on all items in a SharePoint Online list. This PowerShell runs workflow in each item of a list in SharePoint Online. PnP PowerShell to Start Workflow in SharePoint Online Here is how…

Read more

SharePoint Online: Set Site Column Properties using PowerShell

Requirement: Update Properties of a Site Column in SharePoint Online using PowerShell How to edit a Site Column in SharePoint Online? You can edit site column properties such as name, group, column type, etc in SharePoint Online by following the below steps: Navigate to the SharePoint Online site where the site column…

Read more

Disable “New Folder” in SharePoint Online Lists and Libraries

Requirement: Disable Folder Creation in SharePoint Online List or Document Library. How to Prevent Folder Creation in SharePoint Online? Folders can be created on any SharePoint list or library where the “New Folder” option is turned ON. By default, folders are enabled in libraries, and in lists. Like folders in Windows Explorer,…

Read more

Configure HTML Field Security in SharePoint Online

Requirement: Configure HTML Field Security in SharePoint Online HTML Field Security in SharePoint Online: IFrames can lead to JavaScript injection attack, hence We have a security precaution in SharePoint Online to allow embed scripts only from trusted domains. If you try to add an embed script from any other site, You’ll get…

Read more