How to Get Content Type ID in SharePoint using PowerShell?

Requirement: Typical usage of Content Types is reusable metadata in SharePoint. At times, You may need to get content type ID by name in order to assign the content type to lists and libraries programmatically. Let’s get the content type ID in SharePoint 2016 using PowerShell. How to find content type id…

Read more

Get All SharePoint Site Collections in a Web Application using PowerShell

How to get all site collections of a web application in SharePoint? All site collections and sites within a web application share the same top-level URL. To get all site collections in a web application from SharePoint central Admin, follow these steps: Get all site collections in web application using PowerShell: Here…

Read more

Add-Remove User to SharePoint Multi-Valued People Picker Field using PowerShell

Requirement: We have a SharePoint list called “Projects” with 1000s of items. The list has a field called “Team Members” which allows multiple user values. We often get a requirement to either add or remove a particular user to all items or specific items filtered by other columns in the list. Solution: Adding-removing…

Read more

SharePoint Online: How to Check In a Document using PowerShell?

Check out and Check in feature in SharePoint avoids conflicts in typical collaboration environments, where multiple users may try to edit the same document simultaneously. When you are finished making changes, You must check in the document back to make the changes available to all other users, Even if the document is…

Read more

SharePoint Online: How to Check Out a Document using PowerShell?

Checking out a document in SharePoint ensures that you are the only one making edits to it. The purpose of checkout is to prevent conflicts in a collaborative environment where multiple people may try to edit the same document or list items simultaneously. So, When a file is checked out to you,…

Read more

SharePoint Online: Check If a File Exists in Document Library using PowerShell

Requirement: Check if a file exists in the SharePoint Online document library using PowerShell. PowerShell to check if a file exists in SharePoint Online document library: You may often want to check if a file exists in a SharePoint Online document library before taking certain actions. For example, you may want to…

Read more

SharePoint Online: Check If a Field Exists in List using PowerShell

Requirement: PowerShell to check if a field exists in a list in SharePoint Online. PowerShell to check if a Column exists in a List In some cases, you may need to determine if a field exists in a list before creating a new field in the list while automating tasks. In this…

Read more

SharePoint Online: Check If List Exists using PowerShell

Requirement: Check if a particular list exists in a given SharePoint Online site using PowerShell CSOM script. PowerShell Script to check if List Exists in SharePoint Online: Do you need to check if a SharePoint list or document library exists before creating it? PowerShell can help! In this post, we’ll show you…

Read more

SharePoint Online: Check if a Site Collection or Subsite Exists using PowerShell

Requirement: Check if a site or site collection exists in SharePoint Online using PowerShell. How to check if a site exists in SharePoint Online? Have you ever needed to check if a site exists in SharePoint Online? Maybe you’ve just been given the URL for a potential new site, and you want…

Read more

Update SharePoint List Items from CSV File using PowerShell

Requirement: Update SharePoint List Items from a CSV file. A bit of background: We have a list with 1000s of rows of organization-wide experts. Later we added a new field for “Department”. Now the requirement is to update the Department field for a specific list of users. While the Quick edit (or…

Read more