SharePoint Online: PowerShell to Get a File

Requirement: Get a File from SharePoint Online using PowerShell. PowerShell to Get a File from SharePoint Online Here is my nifty collection of PowerShell scripts to get a file from SharePoint Online. Get File from Absolute URL in SharePoint Online SharePoint Online: PowerShell to Get File by Name from a Document Library…

Read more

SharePoint Online: Delete All Unique Permissions from a Site Collection using PowerShell

Requirement: Remove unique permissions from a SharePoint Online site collection and restore permission inheritance from the parent. PowerShell Script to Restore Permission Inheritance in SharePoint Online SharePoint Online allows us to manage permissions at a more granular level when we need unique permissions to objects such as subsite, list, folder, or list…

Read more

SharePoint Online: Filter List View to Show Files Only from a Sub-Folder using PowerShell

Requirement: Set a list view filter to show files from a specific folder in a SharePoint Online document library. How to Set the View Filter to Show Files from a Folder? Unfortunately, The SharePoint web user interface doesn’t provide us an option to set a view filter based on folder, sub-folders. While…

Read more

SharePoint Online: PowerShell to Disable Modern Experience

Requirement: Disable modern experience in SharePoint Online. How to Disable New User Experience in a List and Switch back to Classic View? Definitely, the modern experience in SharePoint Online lists and libraries is faster, mobile-friendly, and easier to use. It brings new functionalities and components, such as: Quick edit metadata with information…

Read more

SharePoint Online: PowerShell to Get List ID (GUID)

Requirement: Get List ID in SharePoint Online using PowerShell How to Get the List ID in SharePoint Online? If you go to List Settings of any list or library, the URL looks like https://crescent.sharepoint.com/_layouts/15/listedit.aspx?List=d50ffc71%2D8b0f%2D4cbe%2Da1db%2D5667fee88468, Here what you see for the “List” query parameter is the ID of the list. Just replace %2D…

Read more

SharePoint Online: Delete Unique Permissions in a Subsite using PowerShell

Requirement: Delete Unique Permissions of a Subsite in SharePoint Online using PowerShell How to Remove Unique Permissions of a SharePoint Online Site? Removing unique permissions and restoring permission inheritance for a subsite allows its security to be managed at the parent site level, instead of managing the security separately from that subsite….

Read more

SharePoint Online: PowerShell to List All Files Inventory in a Document Library

Requirement: List All Documents in a SharePoint Online Document Library using PowerShell. SharePoint Online: PowerShell to Get List of Files in Document Library Here is the SharePoint Online PowerShell to list all documents: This PowerShell gets a list of files in a SharePoint Online document library. PowerShell to List All Documents in…

Read more

SharePoint Online: PowerShell to a Get List

Requirement: Get a list in SharePoint Online using PowerShell PowerShell to Get a SharePoint Online List Let’s get a list in SharePoint Online and count items in a list using PowerShell: SharePoint Online Get List using PowerShell Similarly, you can get all lists from a SharePoint Online site as: PnP PowerShell to…

Read more

SharePoint Online: PowerShell to Disable Versioning

Requirement: Disable Versioning in SharePoint Online using PowerShell How to Disable Versioning in SharePoint Online? The versioning feature in SharePoint Online creates a copy of items when someone changes a document so that we can track every change to the document and revert to the old version if needed. Although it’s a…

Read more

SharePoint Online: Get Subsites using PowerShell

Requirement: Get a subsite using PowerShell in SharePoint Online Get a Subsite using PowerShell in SharePoint Online As there is no PowerShell cmdlet to retrieve SharePoint Online subsite, Here is how to get a subsite (spweb) from PowerShell in SharePoint Online: This is equivalent to Get-SPWeb cmdlet in SharePoint On-premises PowerShell. SharePoint…

Read more