SharePoint Online: PowerShell to Get External Sharing Settings

November 21, 2018    , , , ,
Requirement: Find all site collections with external sharing enabled (or disabled!) PowerShell to Get External Sharing Configuration in SharePoint Online: External sharing (or guest sharing) feature in SharePoint Online enables users to share documents and content outside the organization with people who are not members of your organization such as external vendors, customers, consultants, etc. SharePoint Online: PowerShell to List External Sharing While External sharing settings at tenant level can be configured using links provided in the bottom of this article, We can check external sharing settings for all site collections level using this PowerShell script in SharePoint Online Management Shell: #Config Variables $AdminSiteURL= "https://crescent-admin.sharepoint.com" #Connect to SharePoint Online services Connect-SPOService -url $AdminSiteURL -Credential (Get-Credential) #Get External Sharing Settings for all sites Get-SPOSite | Select-object url,sharingcapab
SharePoint Online: PowerShell to Get External Sharing Settings SharePoint Online: PowerShell to Get External Sharing Settings Reviewed by Salaudeen Rajack on November 21, 2018 Rating: 5

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

November 16, 2018    , , ,
Requirement: Disable Sharing for Non-Owners in SharePoint Online PowerShell to Disable Sharing for Non-Owners: #Config Variables $AdminSiteURL= "https://crescent-admin.sharepoint.com" $SiteURL= "https://crescent.sharepoint.com/sites/marketing" #Connect to SharePoint Online services Connect-SPOService -url $AdminSiteURL -Credential (Get-Credential) #Disable Sharing for Non-Owners Set-SPOSite -Identity $SiteURL -DisableSharingForNonOwners This disables share button for non-owners (members) for a given site collection. Found a problem though! when you run this script for the first time, it disables access request!! To disable share button in SharePoint Online, use: How to Disable Share Feature in SharePoint Online?
SharePoint Online: How to Disable Sharing for Non-Owners using PowerShell? SharePoint Online: How to Disable Sharing for Non-Owners using PowerShell? Reviewed by Salaudeen Rajack on November 16, 2018 Rating: 5

SharePoint Online: Disable Page Comments in Modern Sites using PowerShell

November 14, 2018    , , ,
Requirement: Disable page comments in SharePoint Online Modern Sites and Communication sites. How to Disable Page Comments in SharePoint Online? Modern pages in SharePoint Online have a comments section at the bottom of each page for better collaboration. Option 1: Disable Comments at the tenant level Page comments can be turned-off at tenant level by the below settings: Navigate to SharePoint Online Admin Center: https://yourdomain-admin.sharepoint.com   Click on Settings from left navigation On the Settings page, Select "Disable Comments on Site Pages." Click OK to save your changes. Wait for a while, the comments section disabled from all pages in the tenant. You can disable comments on modern pages at tenant level using PowerShell as well: $AdminCenterURL="https://crescent-admin.sharepoint.com" #Connect to SharePoint Online Connect-SPOService -Url $AdminCenterURL -Credential (Get-Credential) #Disable Comments on Site Pages at Tenant Level Se
SharePoint Online: Disable Page Comments in Modern Sites using PowerShell SharePoint Online: Disable Page Comments in Modern Sites using PowerShell Reviewed by Salaudeen Rajack on November 14, 2018 Rating: 5

SharePoint Online: Find All Large Files using PowerShell

November 12, 2018    , , ,
Requirement: Find all large files in SharePoint Online site collection. How to Find Large Files in SharePoint Online? To find large files in SharePoint Online, you can use "Storage Metrics" page. Navigate to your SharePoint Online site collection >> Click on Settings Gear >> Site Settings In Site Settings page, Click on "Storage Metrics" link under "Site Collection Administration" (https://crescent.sharepoint.com/_layouts/15/storman.aspx) The Storage Metrics page gives you the current Storage consumption of the site. You can navigate to each site/folder objects to get the storage stats of the particular object. You can also include the OOTB "File Size" column in your document library views to get the size of individual files! Explorer view also helps!! SharePoint Online: PowerShell to Get All Large Files in a Site Collection Getting large files by navigating into each folder from the above Storage metrics page is cumb
SharePoint Online: Find All Large Files using PowerShell SharePoint Online: Find All Large Files using PowerShell Reviewed by Salaudeen Rajack on November 12, 2018 Rating: 5

SharePoint Online: How to Apply Column Formatting?

November 09, 2018    , ,
Column Formatting in SharePoint Online Column formatting in SharePoint Online modern lists and libraries customizes the field's appearance based on its value. In the past, We used SharePoint Designer and jQuery-CSS methods to format columns. But now in SharePoint Online we can apply formatting to columns with JSON. How to Apply Column Formatting in SharePoint Online List? Column formatting in SharePoint Online Choice, Yes/No, Date columns can be applied with few clicks without even JSON knowledge. Here is how we can use column formatting in SharePoint Online list: To apply conditional formatting on a column in SharePoint Online list or library, Click on a column header, select Column settings from the menu, and then click Format this column .  The Format column panel will open. Click on "Edit Template" link Since this is a choice column, SharePoint displays a list of all choices with a little color palette icon. Select colors for different choice values and c
SharePoint Online: How to Apply Column Formatting? SharePoint Online: How to Apply Column Formatting? Reviewed by Salaudeen Rajack on November 09, 2018 Rating: 5
Powered by Blogger.