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

Connect to SharePoint Online using PowerShell with Multi-factor Authentication (MFA)

August 30, 2019    , , ,
Requirement: Connect to SharePoint Online from PowerShell using multi-factor authentication. PowerShell to connect to SharePoint online with MFA Multi-Factor Authentication in Office 365 environments is often enabled as part of security hardening. Instead of typical user id and passwords, it adds an extra layer with SMS or phone call to complete the authentication process. However, in SharePoint when you enable MFA for the account you use to connect to SharePoint Online from PowerShell, it fails! Here is the list of available options on how to connect to the SharePoint Online site through an account with Multi-Factor authentication is enabled. Create App Password and Connect with App Password Visit http://aka.ms/createapppassword to create an App password for your MFA enabled account(s), Then connect to SharePoint Online with the App password! E.g. #Admin Center URL of your SharePoint Online $AdminSiteURL= "https://crescent-admin.sharepoint.com" #Connect to SharePoi
Connect to SharePoint Online using PowerShell with Multi-factor Authentication (MFA) Connect to SharePoint Online using PowerShell with Multi-factor Authentication (MFA) Reviewed by Salaudeen Rajack on August 30, 2019 Rating: 5

SharePoint Online: Get All Items Created or Modified by a Specific User

August 25, 2019    , , ,
Requirement: Find All List Items Created or Modified by a Specific User PowerShell to Get All Files Created or Modified by a Particular User #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" #Set Variables $SiteURL = "https://crescent.sharepoint.com/sites/marketing" $ListName = "Team Documents" $UserAccount = "Salaudeen@Crescent.com" $CSVPath = "C:\Temp\UserData.csv" #Get Credentials to connect $Cred= Get-Credential $Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.Username, $Cred.Password) #Setup the context $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $Ctx.Credentials = $Credentials #Resolve User account $User =
SharePoint Online: Get All Items Created or Modified by a Specific User SharePoint Online: Get All Items Created or Modified by a Specific User Reviewed by Salaudeen Rajack on August 25, 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

How to Copy a Site using PowerShell PnP Provioning Template in SharePoint Online?

August 05, 2019    , , , , ,
Requirement: Copy a sub-site in SharePoint Online using PnP Provisioning Template. Site templates are a great way to make a "template" and create a copy of a subsite including all its structure and optionally content. However, Microsoft has removed the "Save as Template" feature in modern site templates and group associated team site or communication sites. So, How to make a copy of a site in SharePoint Online? How this process works? PnP PowerShell is a powerful way to provision site artifacts in SharePoint Online. Now, let's use it to copy a subsite using PnP provisioning template. Step 1: Connect to the Source site and Get its Schema Step 2: Create a New Subsite Step 3: Import the Schema to the Target Site Step 1: Get the Source Site Schema XML Create your site using the SharePoint UI, do the necessary customizations. Once the site is ready to use as a template, Connect to the source site and get the site schema in XML format using Get-PnP Prov
How to Copy a Site using PowerShell PnP Provioning Template in SharePoint Online? How to Copy a Site using PowerShell PnP Provioning Template in SharePoint Online? Reviewed by Salaudeen Rajack on August 05, 2019 Rating: 5

SharePoint Online: Change Header Layout, Site Logo, Background using PowerShell

August 05, 2019    , ,
Requirement: Change Header layout, Site Logo and Background settings in SharePoint Online. How to Set Header layout, Site Logo and Background in SharePoint Online? To change the header settings in SharePoint Online, Click on "Settings" gear icon >> Click on "Change the look" from site settings menu. Click on "Header" Set the header layout, site logo and header background. Click on "Save" to commit your changes. PowerShell to Set Header layout, Site Logo and Background: Lets change the SharePoint Online header layout, header background color and header logo using PowerShell. #Set Variables $SiteURL = "https://crescent.sharepoint.com/sites/credit" $LogoURL= "https://crescent.sharepoint.com/sites/credit/SiteAssets/logo.jpg" #Connect to PNP Online Connect-PnPOnline -Url $SiteURL -UseWebLogin #Get the Web $Web = Get-PnPWeb #Set Header Options $Web.HeaderLayout = "Standard" # Standard, Co
SharePoint Online: Change Header Layout, Site Logo, Background using PowerShell SharePoint Online: Change Header Layout, Site Logo, Background using PowerShell Reviewed by Salaudeen Rajack on August 05, 2019 Rating: 5
Powered by Blogger.