SharePoint Online: Export-Import Content Type using PowerShell

Requirement: Export-Import Content Types in SharePoint Online using PowerShell Export Content Type in SharePoint Online using PowerShell: When you want to re-use a content type in different site SharePoint Online site collections, without a content type hub, You can copy-paste them using this PowerShell script. and the script outputs a XML: PowerShell…

Read more

SharePoint Online: Get List Content Types using PowerShell

Requirement: Get All List Content Types in SharePoint Online SharePoint Online List Content Types To get all content types of a  SharePoint List or library, go to List Settings, and you’ll find all content types of the list SharePoint Online: PowerShell to Get List Content Types and the output: To get content…

Read more

How to Find Who Created a Site in SharePoint?

Ever wanted to find out who has created a SharePoint site? Sorry! There is no way from SharePoint user interface to get who created a site! You can’t get “Created By” or “Created On” values anywhere. But PowerShell is our rescuer! Let’s see who has created a SharePoint site using PowerShell: Find…

Read more

SharePoint Online: How to Trigger Full Reindex using PowerShell?

Requirement: Reindex SharePoint Online site using PowerShell How to Reindex the SharePoint site? After mapping a crawled property to new managed property in SharePoint Online, We had to Reindex the SharePoint Online site. Typically, whenever you do changes to the search schema, You should Reindex the site. Unlike SharePoint On-premises, where we…

Read more

How to Disable OneDrive for Business in Office 365-SharePoint Online?

Requirement: For Security reasons and to take more control over what users are saving to OneDrive, The organization wanted to disable OneDrive for Business in Office 365. Typically, Office 365 services can be enabled or disabled through managing license for products in Office 365 Admin center, E.g. If you don’t want your…

Read more

SharePoint Online: Find All Documents using Keyword Query PowerShell

Requirement: Get All Documents in SharePoint Online Site and Export to CSV PowerShell to Find All Documents using Keyword Query in SharePoint Online A user wants to get a list of all documents which are not updated in recent years. So, Here is the PowerShell script to get all documents in a…

Read more

How to Delete Drop Off Library in SharePoint 2016?

Problem:When the content organizer feature is enabled, it creates a “Drop Off Library” document library in your SharePoint site. But disabling the feature does not remove the library! Also, you can’t simply delete “Drop Off Library” because the “Delete this document library” link is not available when you go to “Library Settings”….

Read more

How to Copy a SharePoint List using PowerShell?

Requirement: Copy a SharePoint List to Another List How to copy a list in SharePoint? While Export-Import is an option, You can save the list with or without content as a template and create any number of new list or libraries from the list template. Go to the list settings and save…

Read more

SharePoint Online: Get Site Owner using PowerShell

Requirement: Get SharePoint Online Site Owner using PowerShell How to Check Site Owner in SharePoint Online? You can find site owner SharePoint Online from SharePoint Online Admin Center: Sign in to SharePoint Online Admin Center (https://YourDomain-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx) Select the site collection you wish to get site owner from the site collections list >>…

Read more

SharePoint Online: How to Change Site Owner using PowerShell?

Requirement: Change Site Owner in SharePoint Online using PowerShell How to Change Site Owner in SharePoint Online? Site Owners of a SharePoint Online site collections can be changed only through SharePoint Online Admin Center or PowerShell. To change site owner in SharePoint Online follow these steps: Important: You must be either Global…

Read more