SharePoint Online: Set Active Directory Security Group as Site Collection Administrator using PowerShell

Requirement: Add active directory security group to SharePoint online site collection administrator group. PowerShell to Add AD Security group as Site Collection Administrator: Step 1: Get AD Security Group’s ID We need the ID of the AD group first. Use the PowerShell script to retrieve the ID, make sure you have Azure…

Read more

Set SharePoint Online Site to Read Only using PowerShell

Requirement: Set SharePoint Online site to read only using PowerShell. How to make a SharePoint Online site read only? During a migrated project, we wanted to set a SharePoint Online site collection to read-only in order to enforce Data consistency. To make SharePoint Online site collection read-only, use this PowerShell script in…

Read more

SharePoint Online: How to Disable Social Bar (Like, Comment, Views, Save for later) in Modern Site Pages?

Requirement: Disable Social Bar links (Like, Comment, Views, Save for later) in SharePoint Online Modern Site Pages PowerShell to Hide Social Bar Links in SharePoint Online Site Collection: The Social Bar is a new feature in SharePoint Online modern pages, that lets users to like, comment, and see the number of views….

Read more

Fix “Connect-SPOService : The term ‘Connect-SPOService’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.” Error

Problem: When trying to connect to SharePoint Online through PowerShell cmdlet: Connect-SPOService -URL https://crescent-Admin.SharePoint.com, got an error message and could not connect to SharePoint Online from PowerShell: Connect-SPOService : The term ‘Connect-SPOService’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name,…

Read more

SharePoint Online: Remove User from All Groups in a Site using PowerShell

Requirement: Remove user from all groups in a SharePoint Online Site Collection SharePoint Online: PowerShell to Remove User from All Groups This PowerShell script gets all groups of the given user and removes it from the group. Run this script in SharePoint Online Management Shell. Remove User from All Groups using PowerShell…

Read more

SharePoint Online: Find All Active Directory Security Groups in a Site Collection

Requirement: Get All AD Security Groups in a SharePoint Online Site. CSOM PowerShell to Find All AD Groups in SharePoint Online: Here is the PowerShell to get all active directory domain groups from SharePoint Online site collection: Get AD Groups in a Site Collection using SharePoint Online Management Shell: This time, let’s…

Read more

How to Install / Update / Uninstall SharePoint Online PowerShell Module?

SharePoint Online Management Shell is available as a module in PowerShell Gallery now! So, you can install it as a module directly from PowerShell instead of downloading and installing the MSI file! This makes it easier to update. Here is how to install the SharePoint Online PowerShell module: Prerequisites: The Install-module cmdlet…

Read more

SharePoint Online: How to Disable Sharing for Non-Owners using PowerShell?

Requirement: Disable Sharing for Non-Owners in SharePoint Online. How to Disable Sharing for Members in SharePoint? To disable sharing for members in SharePoint Online, follow these steps: Settings >> Site Settings >> Site Permissions Click on “Access Request Settings” button in the ribbon.  Uncheck “Allow members to share the site and individual…

Read more

Get SharePoint Online Tenant Settings using PowerShell

Requirement: Get tenant settings in SharePoint Online PowerShell to Retrieve Tenant Setting in SharePoint Online: Use Get-SPOTenant cmdlet to get all configuration settings of the tenant. This cmdlet gets all settings of the tenant Get SharePoint Online Tenant Settings using PowerShell:

Read more