SharePoint Online: Create Picture Library using PowerShell

March 29, 2018    , , ,
Requirement: Create Picture Library in SharePoint Online using PowerShell How to add picture library in SharePoint Online? As the name implies, Picture Library in SharePoint Online is optimized for storing and sharing digital images. Picture library lets you upload and store photos and images that can be used in your site or shared with others. To create a picture library in SharePoint Online, follow these steps: Navigate to the SharePoint site where you want to create the picture library. Click on Settings gear icon >> Select Add an app. (You can also go to "Site contents", and then click add an app.) On the Your Apps page, Scroll down and select "Picture Library" icon. You can use search box as well. In the New dialog box,  type a name for the library and Click Create. PowerShell to Create Picture Library in SharePoint Online: #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensi
SharePoint Online: Create Picture Library using PowerShell SharePoint Online: Create Picture Library using PowerShell Reviewed by Salaudeen Rajack on March 29, 2018 Rating: 5

SharePoint Online: Configure Require Check Out Option using PowerShell

March 26, 2018    , , , ,
Requirement: Configure require check out settings in SharePoint Online. Require check out option in SharePoint Online helps to avoid save conflicts when multiple users attempts to open and edit a document at the same time. Basically the Check out is a quick way to lock a document from editing by other users. How to Enable Require Check Out for Document Libraries in SharePoint Online? By default, the require checkout option is turned OFF. We can turn require check out option for a document library ON or OFF. Here is how: Go to your SharePoint Online document library. Click on Settings >> Library Settings On Document Library Settings page, Click on Versioning settings Scroll down to the bottom of the page. Under Require Check out section, select Yes for Require documents to be checked out before they can be edited? Click "OK" to save your changes. This Turns on require check out for the document library. What if you want to enable or disable require chec
SharePoint Online: Configure Require Check Out Option using PowerShell SharePoint Online: Configure Require Check Out Option using PowerShell Reviewed by Salaudeen Rajack on March 26, 2018 Rating: 5

Configure Require Check Out Settings in SharePoint 2016

March 26, 2018    , , , , ,
Require Check out Setting in SharePoint Check out is a quick way to lock a document from editing by other users. The require check out feature in SharePoint 2016 eliminates the risk of accidentally overriding another user's update on the same document at same time. As SharePoint is a collaboration platform, several users may work on same document. However, when more than one user attempts to open and edit a document at the same time, a conflict occurs. SharePoint makes it possible for users to lock a document by checking it out so that only one person can edit the document at a time. Changes made to a document when it is checked out cannot be seen by other users until it is checked back in. Require users to check out documents prior to editing them can be configured in the document library settings. An optional comment can also be added when the document is checked in, which can be viewed in the document's history. You can have this feature enabled if lots of people are w
Configure Require Check Out Settings in SharePoint 2016 Configure Require Check Out Settings in SharePoint 2016 Reviewed by Salaudeen Rajack on March 26, 2018 Rating: 5

How to Connect to SharePoint Online using PnP PowerShell?

March 23, 2018    , ,
Requirement: Connect to SharePoint Online using PnP PowerShell SharePoint Patterns and Practices (PnP) for SharePoint Online is a set of PowerShell cmdlets written by the community to efficiently manage SharePoint Online. To connect to SharePoint Online from PnP PowerShell, here are the steps: Step 1: Install SharePoint Online PnP PowerShell Module To start with PnP PowerShell, You need to download and install Windows Management Framework 5.1 from: https://www.microsoft.com/en-us/download/details.aspx?id=54616 (Select the appropriate download as per your operating system) on Windows 7/8, Windows 2008 or in Windows 2012/R2 environments. Restart your machine to complete installation. Open SharePoint Online Management Shell or Windows PowerShell as Administrator and Run: Install-Module SharePointPnPPowerShellOnline Confirm the prompts and this downloads and installs PnP module for SharePoint Online You can also download and install the MSI installer from GitHub: Download PnP
How to Connect to SharePoint Online using PnP PowerShell? How to Connect to SharePoint Online using PnP PowerShell? Reviewed by Salaudeen Rajack on March 23, 2018 Rating: 5

SharePoint Online: Get Change Log using PowerShell

March 23, 2018    , ,
We can query Change Log in SharePoint Online to get a list of changes made to a SharePoint content database, site collection, site, or list. Here is my PowerShell example: PowerShell to Get Change Log in SharePoint Online: #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" #Variables $SiteURL="https://crescenttech.sharepoint.com" $ListName ="Documents" #Setup 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 #Get the web $Web = $Ctx.Web $Ctx.Load($Web) $Ctx.ExecuteQuery() #
SharePoint Online: Get Change Log using PowerShell SharePoint Online: Get Change Log using PowerShell Reviewed by Salaudeen Rajack on March 23, 2018 Rating: 5

SharePoint Online: Delete Link in Quick Launch or Top Navigation using PowerShell

March 23, 2018    , , , ,
Requirement: Remove a Node from SharePoint Online Top Navigation or Quick Launch bar. How to Remove a Link from SharePoint Online Top Navigation or Quick Launch Bar? To remove links from SharePoint Online site navigation, Go to Site Settings >> Click on " Navigation" from Look and feel (You may have to use "Top link bar" if publishing feature is not enabled!) Select the navigation node or link in either global navigation (Top navigation) or from current navigation (Quick Launch) Click on "Delete" icon to delete the link from navigation.  Click on "OK" button in the bottom of the page to save your changes. PowerShell to Delete a Navigation Node in SharePoint Online: Here is the PowerShell to remove a node from quick launch or top navigation in SharePoint Online. #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll&
SharePoint Online: Delete Link in Quick Launch or Top Navigation using PowerShell SharePoint Online: Delete Link in Quick Launch or Top Navigation using PowerShell Reviewed by Salaudeen Rajack on March 23, 2018 Rating: 5

SharePoint Online: Add Top Navigation Link using PowerShell CSOM

March 23, 2018    , , , ,
Requirement: Add link to top navigation in SharePoint Online using PowerShell PowerShell to Add Link to Top Navigation in SharePoint Online: Here is the PowerShell to add link to global navigation of the SharePoint Online site. #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" #Add new Link in Top Navigation Function Add-SPOTopNavigationLink() { Param( [String]$SiteURL, [parameter(Mandatory=$false)][String]$ParentNodeTitle, [String]$Title, [String]$URL ) #Setup Credentials to connect $Cred= Get-Credential $Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.Username, $Cred.Password) #Setup the context $Ctx = New-Object Micros
SharePoint Online: Add Top Navigation Link using PowerShell CSOM SharePoint Online: Add Top Navigation Link using PowerShell CSOM Reviewed by Salaudeen Rajack on March 23, 2018 Rating: 5

SharePoint Online: Add Link to Quick Launch Navigation using PowerShell

March 22, 2018    , , , ,
Requirement: Add Link to Quick Launch Navigation SharePoint Online using PowerShell How to Add a Link to Quick Launch Navigation in SharePoint Online? To add a link in quick launch navigation Go to Site Settings >> Click on "Quick launch" from Look and feel From Quick Launch page, You can add new heading or link by clicking relevant links. If publishing feature is enabled, You'll get "Navigation" link in site settings SharePoint Online: PowerShell to Add Link to Quick Launch #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" #Config Parameters $SiteURL="https://crescenttech.sharepoint.com/sites/marketing" #Setup Credentials to connect $Cred= Get-Credential $Credenti
SharePoint Online: Add Link to Quick Launch Navigation using PowerShell SharePoint Online: Add Link to Quick Launch Navigation using PowerShell Reviewed by Salaudeen Rajack on March 22, 2018 Rating: 5

SharePoint Online: Get All Feature using PowerShell

March 22, 2018    , , , ,
Requirement: SharePoint Online PowerShell to List Features To get features in SharePoint Online, Go to Site Settings >> Click on "Site Features" to get web scoped features. Click on "Site Collection Features" to get a list of site collection features SharePoint Online: Get Site Collection Features PowerShell List SharePoint Online site features using PowerShell. This PowerShell script gets all features present in a given URL's site and web scopes. #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" #Variables $SiteURL="https://crescenttech.sharepoint.com" #Setup Credentials to connect $Cred= Get-Credential $Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCr
SharePoint Online: Get All Feature using PowerShell SharePoint Online: Get All Feature using PowerShell Reviewed by Salaudeen Rajack on March 22, 2018 Rating: 5

SharePoint Online: Update Quick Launch Links using PowerShell

March 21, 2018    , , ,
Requirement: Update Quick Launch in SharePoint Online using PowerShell How to Update Quick Launch Links in SharePoint Online? To update links in quick launch, Go to Site Settings >> Click on "Quick launch" from Look and feel Click on "Edit" icon to edit and update quick launch link. If publishing feature is enabled, You'll get "Navigation" link in site settings under "Look and Feel" SharePoint Online PowerShell to Update Quick Launch: #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" #Config Parameters $SiteURL="https://crescenttech.sharepoint.com/sites/marketing" $OldURL = "http://support.crescent.com/app" $NewURL = "http://suppo
SharePoint Online: Update Quick Launch Links using PowerShell SharePoint Online: Update Quick Launch Links using PowerShell Reviewed by Salaudeen Rajack on March 21, 2018 Rating: 5

SharePoint Online: Get-Set Property Bag Values with PowerShell

March 21, 2018    , ,
Property bag in SharePoint Online is a quick and convenient way to store and retrieve custom configurations, instead of having to store them in somewhere else. It stores configuration data in the Hash-Table (Key-Value) format. SharePoint allows storing configurations settings at different levels such as site collection, site, list, list item. Here is my collection of PowerShell scripts to work with Property bag in SharePoint Online: PowerShell to Get a Key Value in SharePoint Online Property Bag: #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" #Function to Get a particular key value in Property Bag Function Get-SPOPropertyBagKey($SiteURL, $Key) { #Setup Credentials to connect $Cred= Get-Credential $Credenti
SharePoint Online: Get-Set Property Bag Values with PowerShell SharePoint Online: Get-Set Property Bag Values with PowerShell Reviewed by Salaudeen Rajack on March 21, 2018 Rating: 5
Powered by Blogger.