SharePoint Online: Deactivate Feature using PowerShell

Requirement: Deactivate a feature in SharePoint online using PowerShell. How to Deactivate a Feature in SharePoint Online? Follow these steps to deactivate a SharePoint Online feature: Navigate to the site where the feature needs to be deactivated. On the site’s home page, click the Settings gear icon and then the Site Settings…

Read more

SharePoint Online: Get All Site Collections using PowerShell

Requirement: Get all site collections using PowerShell in SharePoint Online. How to Get a List of Site Collections in SharePoint Online? A site collection is a group of sites, generally organized by department, project, region, function, or business units. How to view all site collections in SharePoint Online? Well, If you want…

Read more

SharePoint Online: PowerShell to Get All Subsites in a Site Collection

Requirement: PowerShell to list all subsites in a SharePoint Online Site collection. SharePoint Online: Get All Subsites using PowerShell How to get all subsites in a site collection in SharePoint Online? To get all subsites of a site (either a top-level site or sub-site), use this PowerShell: This PowerShell script gets all…

Read more

SharePoint Online: Delete Unique Permissions for All Items in a List using PowerShell

Requirement: Reset all customized permissions in all documents of a SharePoint online document library. By default, Permissions are inherited from their parent in all levels of SharePoint. E.g. Site inherits permissions from its parent site collection (or parent site), lists and libraries inherits permissions from the site, items in the list inherits…

Read more

SharePoint Online: How to Hide a Column in Content Type using PowerShell?

Requirement: Hide a Column from Content Type in SharePoint Online. How to Hide a Column using Content types in SharePoint Online? Columns can be hidden at both content type level or list level in SharePoint. You can hide a column from appearing in list forms, such as: NewForm.aspx, EditForm.aspx, DispForm.asxp using content…

Read more

SharePoint Online: Delete Unique Permissions and Restore Inheritance in a List using PowerShell

Requirement: SharePoint Online remove all unique permissions in a List or Library How to Delete Unique permissions and Inherit from the parent in SharePoint Online? Removing unique permissions and restoring permission inheritance for a list or library allows its security to be managed at the site level, instead of managing the security…

Read more

SharePoint Online: Delete a List Item using PowerShell

Requirement: Delete a List Item in SharePoint Online. How to Delete a List Item in SharePoint Online? To delete a list item from the SharePoint Online list, do the following: Browse to your list, select the item you would like to delete.  Click the “Delete” button in the list’s menu bar. Confirm…

Read more

SharePoint Online: Delete All List Items using PowerShell

Requirement: Delete All Items from SharePoint Online List using PowerShell We have a list in SharePoint Online – Office 365 site with a bunch of items. Need them to be deleted in bulk rather than deleting one by one from SharePoint web UI. So, let us use SharePoint Online PowerShell to delete…

Read more

SharePoint Online: Import CSV File into SharePoint List using PowerShell

Scenario: My requirement is to import data from CSV file to SharePoint online list from a local drive, every day! Create a List in SharePoint Online, matching columns from the CSV file, before running the script! PowerShell Script to import SharePoint List Items from CSV File: Here is the SharePoint Online PowerShell…

Read more

SharePoint Online: Get All Lists and Libraries using PowerShell

While working with SharePoint online, you may have to iterate through all lists in a site. Here is the PowerShell script to get all lists from SharePoint online site. SharePoint Online: PowerShell to Get All Lists Here is the PowerShell script to get all lists and libraries from given SharePoint online site…

Read more