SharePoint Online: User Permissions Audit Report for a Site Collection using PnP PowerShell

September 25, 2019    , , , ,
Requirement: Need a report to audit SharePoint Online site collection permissions. SharePoint Online: User Permissions report in a Site Collection using PnP PowerShell Auditing SharePoint Online Site permissions is critical for security as misconfigured permissions may enable users to access to data that they should not have access to. So, regular auditing of SharePoint permissions is crucial to minimizing the risk of data leaks and compliance violations. As there are no out of the box ways to generate permissions report, we can utilize PowerShell get list of effective permissions for your SharePoint site collections. This PowerShell script generates permission report on all objects such as SharePoint Online Site collection and its subsites, lists and libraries, folders and list items which has unique permissions on the given site collection. It scans through following securables: Site collection administrators group Given site collection and sub-sites with unique permissions
SharePoint Online: User Permissions Audit Report for a Site Collection using PnP PowerShell SharePoint Online: User Permissions Audit Report for a Site Collection using PnP PowerShell Reviewed by Salaudeen Rajack on September 25, 2019 Rating: 5

SharePoint Online: Change Site Collection URL using PowerShell

September 18, 2019    , , ,
Requirement: Change Site Collection URL in SharePoint Online How to Change the Site URL in SharePoint Online? Previously, We had to create a new site collection and run a migration tool to copy all contents from old site to new site. Well, not anymore! To change the URL of the existing SharePoint Online site, follow these steps: Login to Modern SharePoint Admin Center >>  Click on "Active Sites" under "Sites" section Select the site collection you want to rename and open its properties pane. Click on "Edit" link next to site URL. Provide a new URL and hit "Save" button. You'll be prompted to enter the new name for the site. You'll get a progress message next, saying: "Updating site address". Wait for it to turn "Updated Site Address". That's all! Your site collection is renamed now! changing site URL can be done either through the SharePoint Admin Center or with PowerShell. Let's see how
SharePoint Online: Change Site Collection URL using PowerShell SharePoint Online: Change Site Collection URL using PowerShell Reviewed by Salaudeen Rajack on September 18, 2019 Rating: 5

SharePoint Online: How to Replace Classic Root Site Collection with a Modern Site?

August 30, 2019    ,
Requirement: Convert SharePoint Online Root site collection from classic to modern experience! Our requirement is, We built a new Intranet based on a Modern SharePoint Communication site and want to swap into the root site. How to change the root site from classic to modern Experience? As SharePoint Online root site collection is created as a classic experience site by default, we had no options to migrate from classic to modern (and we can't delete and re-create the root site!). Well, not anymore! We can replace it with another modern site using Invoke-SPOSiteSwap cmdlet. The newly introduced Invoke-SPOSiteSwap cmdlet can be used to migrate SharePoint Online site from classic to modern. Make sure you have the latest PowerShell module for SharePoint Online is installed (16.0.8812.1200 or later). To get the installed PowerShell module version, use: (Get-Module -Name Microsoft.Online.SharePoint.PowerShell).Version.ToString() Step 1: Create a new modern site collection a
SharePoint Online: How to Replace Classic Root Site Collection with a Modern Site? SharePoint Online: How to Replace Classic Root Site Collection with a Modern Site? Reviewed by Salaudeen Rajack on August 30, 2019 Rating: 5

SharePoint Online: Create Modern Team Site without Group

August 12, 2019    , , , , ,
Requirement: Create a modern team site without a group in SharePoint Online SharePoint Online: Create a modern Team Site without Group SharePoint Site collection is a logical group sites with a common top-level site and subsites organized as a hierarchy. Every site collection shares a common top site, navigation, security, content types, etc. By default, modern team sites are created with an associated Office 365 group in SharePoint Online. Can we create a modern team site without creating a group? Yes, To create a modern SharePoint Online Site collection without creating groups, follow these steps: Login to New SharePoint Admin Center as a tenant admin or SharePoint Online Administrator.  Click on Sites >> Active Sites from left navigation >> Click on "Create" >> and then "Private Site collection" to create a new site collection. Click on "Other Options" to create a modern team site without Office 365 group. Pick the si
SharePoint Online: Create Modern Team Site without Group SharePoint Online: Create Modern Team Site without Group Reviewed by Salaudeen Rajack on August 12, 2019 Rating: 5

SharePoint Online: Apply Modern Theme using PowerShell

July 30, 2019    , , ,
Requirement: Change the site theme in SharePoint Online How to apply theme in SharePoint Online? In SharePoint Online, Themes are responsible for colors in various elements of the site. There are set of default site themes available for selection. You can also add your own custom theme to SharePoint Online. To set a theme in SharePoint Online modern sites, Open your SharePoint Online site where you want to change the theme >> Click on the "Settings" gear icon. In the "Settings" menu, click on "Change the Look" Under themes, Select your desired theme (out of the box or custom theme) and click the "Save" button. The colors on themes can be further customized by clicking on the "Customize" button. This changes the theme for the site. Any user with Design or Full Control permission level have the ability to change site themes. Here is my other post on adding a modern theme using PowerShell in SharePoint Online: How to Ad
SharePoint Online: Apply Modern Theme using PowerShell SharePoint Online: Apply Modern Theme using PowerShell Reviewed by Salaudeen Rajack on July 30, 2019 Rating: 5

Migrate SharePoint 2010 Document Libraries to SharePoint Online using PowerShell

June 16, 2019    , , , , , ,
Requirement: Migrate Document Libraries from SharePoint 2010 to SharePoint Online. How to Migrate SharePoint 2010 Document Libraries to SharePoint Online? The idea is: Export all document libraries from SharePoint On-premises to local drive, export metadata of each document to a CSV file and then Import them to SharePoint Online. Before we begin, Please note, this is not a full fledged migration script which can migrate metadata, security, version history, etc. This script only copies document libraries with its file-folders and metadata "Created by", "Created On", "Modified By", "Modified On" to SharePoint Online. You need 3rd party migration tools if you want migrate all missing pieces! Step 1: Export SharePoint On-Premises Document Library As a first step, Login to any of your SharePoint On-premises web front end server and run the below PowerShell script to export either a single document library or all document libraries from ShareP
Migrate SharePoint 2010 Document Libraries to SharePoint Online using PowerShell Migrate SharePoint 2010 Document Libraries to SharePoint Online using PowerShell Reviewed by Salaudeen Rajack on June 16, 2019 Rating: 5

SharePoint Online: How to Convert Classic Sites to Modern Sites?

June 11, 2019    
Requirement: Convert SharePoint Online site from classic to modern How to change classic site to modern in SharePoint Online? SharePoint Modern experience has many advantages compared with classic, like better user experience, faster page loading, responsive design, etc. There are several methods available to switch from classic to modern experience in SharePoint Online: Option 1: Connect SharePoint Online Classic Site to Office 365 Group We can convert SharePoint Online from classic to modern by connecting it to Office 365 group. Here is how: Navigate to your SharePoint Online classic site >> Click on Settings gear >> Choose "Connect to a new Office 365 Group" from the settings menu. This invokes a wizard to connect team site to Office 365 group. Click on "Let's get Started" button. You'll be presented with New O365 Group properties page. You can update the group name and email alias, and select the group's privacy and then c
SharePoint Online: How to Convert Classic Sites to Modern Sites? SharePoint Online: How to Convert Classic Sites to Modern Sites? Reviewed by Salaudeen Rajack on June 11, 2019 Rating: 5

How to Create a Log File in PowerShell Script?

June 11, 2019    
Requirement: Generate a log file and add messages to it to track the execution of a PowerShell script How to Create a Log File in PowerShell? We may need to log messages to help us troubleshooting where and what went wrong during the execution of the script. Sometimes, for tracking purposes. The simplest way to generate log files by adding content to a text file is: Function Log-Message([String]$Message) { Add-Content -Path "C:\Temp\Log.txt" $Message } Log-Message "Beginning exeuction of the script:" Log-Message "Exeucting of the script..." Log-Message "Completed exeuction of the script!" Case 1: Create Log File from Time Stamp in the Current Directory Let's create a log file based on the current timestamp and log messages prepending time stamp to it. Function Log-Message() { param ( [Parameter(Mandatory=$true)] [string] $Message ) Try { #Get the current date $LogDate = (Get-Date).tostring("
How to Create a Log File in PowerShell Script? How to Create a Log File in PowerShell Script? Reviewed by Salaudeen Rajack on June 11, 2019 Rating: 5

SharePoint Online: Change UI to Modern Experience or Classic Experience using PowerShell

May 19, 2019    , ,
Requirement: Change Classic Experience to Modern Experience and Modern UI to Classic in SharePoint Online. How to Activate Modern Experience from Classic? The modern experience in SharePoint Online lists and libraries is faster, mobile friendly and easier to use.  It brings new functionalities and components, However, some features can only be used in the classic experience. So, you may need to switch between modern UI and classic experience in SharePoint Online. To enable modern experience in SharePoint Online, use the link "Exit classic Experience" at the bottom left corner. This turns ON modern experience. To disable modern experience and switch back to classic in SharePoint Online use the link "Return to Classic SharePoint" Please note, this script doesn't convert your classic team site home page to modern. You have to create a new modern page and set it as Home page! PowerShell to Switch Between Modern Experience and Classic Experiences To ena
SharePoint Online: Change UI to Modern Experience or Classic Experience using PowerShell SharePoint Online: Change UI to Modern Experience or Classic Experience using PowerShell Reviewed by Salaudeen Rajack on May 19, 2019 Rating: 5

SharePoint Online: Find Duplicate Files using PowerShell

April 23, 2019    , ,
Requirement: Find Duplicate Documents in SharePoint Online. When multiple people from different teams work together, there is a huge possibility for duplicate content in SharePoint. People may have uploaded a same document to different libraries or even different folders in document libraries. So, How to find duplicate documents in SharePoint Online? SharePoint Online: Find Duplicate Documents using PowerShell - File Hash Method Lets find duplicate files in a SharePoint Online document library by comparing File hash. #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #Parameters $SiteURL = "https://crescenttech.sharepoint.com" $ListName ="Documents" #Array to Results Data $DataCollection = @()
SharePoint Online: Find Duplicate Files using PowerShell SharePoint Online: Find Duplicate Files using PowerShell Reviewed by Salaudeen Rajack on April 23, 2019 Rating: 5
Powered by Blogger.